posh/pkg/cache/namespace.go
Kevin Franklin Kim e2ad376b6c initial commit
2023-01-03 15:37:15 +01:00

13 lines
241 B
Go

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