a bunch of [32]byte conversions. still more needed.
This commit is contained in:
8
sdk/cache/interface.go
vendored
8
sdk/cache/interface.go
vendored
@@ -3,8 +3,8 @@ package cache
|
||||
import "time"
|
||||
|
||||
type Cache32[V any] interface {
|
||||
Get(k string) (v V, ok bool)
|
||||
Delete(k string)
|
||||
Set(k string, v V) bool
|
||||
SetWithTTL(k string, v V, d time.Duration) bool
|
||||
Get(k [32]byte) (v V, ok bool)
|
||||
Delete(k [32]byte)
|
||||
Set(k [32]byte, v V) bool
|
||||
SetWithTTL(k [32]byte, v V, d time.Duration) bool
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user