a bunch of [32]byte conversions. still more needed.

This commit is contained in:
fiatjaf
2025-04-14 17:31:23 -03:00
parent 40535e6b19
commit b4268d649c
132 changed files with 857 additions and 879 deletions

View File

@@ -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
}