Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrKeyNotFound = errors.New("key not found") ErrKeyNotMatch = errors.New("key not match") ErrRead = errors.New("read error") ErrIgnore = errors.New("ignore") ErrReadDisabled = errors.New("read disabled") ErrWriteDisabled = errors.New("write disabled") ErrClosed = context.Canceled )
View Source
var Break = errors.New("break")
Functions ¶
This section is empty.
Types ¶
type CachePutOption ¶
type CachePutOption interface {
IsCachePutOption()
}
type Def ¶
type Def struct{}
func (Def) NewMemCache ¶
func (Def) NewMemCache( newHashState key.NewHashState, ) NewMemCache
type EncodedLen ¶
type EncodedLen int
func (EncodedLen) IsCachePutOption ¶
func (EncodedLen) IsCachePutOption()
type MemCache ¶
type MemCache struct {
// contains filtered or unexported fields
}
type ScrubOption ¶
type ScrubOption interface {
IsScrubOption()
}
type Store ¶
type Store interface { ID() (ID, error) Name() string Write( key.Namespace, sb.Stream, ...WriteOption, ) ( WriteResult, error, ) Read( Key, func(sb.Stream) error, ) error Exists( Key, ) (bool, error) IterKeys( key.Namespace, func(Key) error, ) error IterAllKeys( fn func(Key) error, ) error Delete( []Key, ) error }
type TapWriteResult ¶
type TapWriteResult func(WriteResult)
func (TapWriteResult) IsSaveOption ¶
func (TapWriteResult) IsSaveOption()
func (TapWriteResult) IsWriteOption ¶
func (TapWriteResult) IsWriteOption()
type TestStore ¶
type TestStore func( ctx context.Context, withStore func( fn func(Store), provides ...any, ), t *testing.T, )
test Store implementation
type WriteOption ¶
type WriteOption interface {
IsWriteOption()
}
type WriteResult ¶
Click to show internal directories.
Click to hide internal directories.