mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-12-04 18:01:12 +01:00
move sdk out to its own module.
This commit is contained in:
10
sdk/cache/interface.go
vendored
10
sdk/cache/interface.go
vendored
@@ -1,10 +0,0 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user