chore: change module name after fork
fix: go.mod chore: change module name after fork
This commit is contained in:
+4
-4
@@ -66,19 +66,19 @@ func (sc *shardedCache) bucket(k string) *cache {
|
||||
return sc.cs[djb33(sc.seed, k)%sc.m]
|
||||
}
|
||||
|
||||
func (sc *shardedCache) Set(k string, x interface{}, d time.Duration) {
|
||||
func (sc *shardedCache) Set(k string, x any, d time.Duration) {
|
||||
sc.bucket(k).Set(k, x, d)
|
||||
}
|
||||
|
||||
func (sc *shardedCache) Add(k string, x interface{}, d time.Duration) error {
|
||||
func (sc *shardedCache) Add(k string, x any, d time.Duration) error {
|
||||
return sc.bucket(k).Add(k, x, d)
|
||||
}
|
||||
|
||||
func (sc *shardedCache) Replace(k string, x interface{}, d time.Duration) error {
|
||||
func (sc *shardedCache) Replace(k string, x any, d time.Duration) error {
|
||||
return sc.bucket(k).Replace(k, x, d)
|
||||
}
|
||||
|
||||
func (sc *shardedCache) Get(k string) (interface{}, bool) {
|
||||
func (sc *shardedCache) Get(k string) (any, bool) {
|
||||
return sc.bucket(k).Get(k)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user