cache icon indicating copy to clipboard operation
cache copied to clipboard

Cache library with Redis backend for Golang

Results 36 cache issues
Sort by recently updated
recently updated
newest added

How can we clear all cache with a function call?

Hello! 👋🏻 I've tried to use go-cache library for some permanently caching use cases and a little bit confused with `Set` function behaviour using ttl < 0 and found similar...

I want to use this cache in a concurrent system, should I declare a Mutex for managing simultaneously read/write operations, or can I use it safely without it?

Hello, I'm trying to get a key using this code: ```go import ( "context" "time" "github.com/go-redis/cache/v8" "github.com/go-redis/redis/v8" ) timeout := 15 * time.Second ring := redis.NewRing(&redis.RingOptions{ Addrs: map[string]string{ "shard1": ":6379",...

Add cache hit field in Item. Hello :) I want to record cache metrics with labels when calling `Once` function like below ```go item := &Item{} if err := cache.Once(item);...

As a user, I want to batch delete many keys at ones as redis does. ```go (cd *Cache) Delete(ctx context.Context, keys ...string) error ```

I get a var data []struct from the database, how to “set” the array into it.

Hi, I think the **nil** comparaison for **cache.Item.Value** field used in my places in the package is not correct : https://github.com/go-redis/cache/blob/6382f515292d118aa7ceaf59599d665b3ebc8827/cache.go#L263 Here is an example a reproduction with nil comparaison...

Redis Cache version: v8 (last available). Redis version: v8 (last available). OS: Mac OS. When you call Once after the Redis connection is lost, the return err is nil. After...

Hi guys, In my scenario, I have set a TTL value for the redis key and reuse it for next time. Can we support this command for more flexible TTL...