posh/pkg/cache/namespace.go
Kevin Franklin Kim 3a81a2482f
feat: use sync map
2025-04-04 16:32:53 +02:00

13 lines
221 B
Go

package cache
import (
"github.com/c-bata/go-prompt"
)
type Namespace interface {
Get(key string, cb func() any) any
Keys() []string
Delete(keys ...string)
GetSuggests(key string, cb func() any) []prompt.Suggest
}