add OptWithRedisConn
This commit is contained in:
parent
bea6d37069
commit
0db6e87b75
1
cache.go
1
cache.go
@ -14,6 +14,7 @@ var (
|
|||||||
ErrNotFound = errors.New("not found")
|
ErrNotFound = errors.New("not found")
|
||||||
OptWithoutGetter = optWithoutGetter{} // for get only
|
OptWithoutGetter = optWithoutGetter{} // for get only
|
||||||
OptWithCreateTime = optWithCreateTime{} // for set & get
|
OptWithCreateTime = optWithCreateTime{} // for set & get
|
||||||
|
OptWithRedisConn = optWithRedisConn{} // for set & get
|
||||||
)
|
)
|
||||||
|
|
||||||
type Cacher[T any] interface {
|
type Cacher[T any] interface {
|
||||||
|
Loading…
Reference in New Issue
Block a user