Documentation
¶
Index ¶
- type Codec
- func (c *Codec) Clear() error
- func (c *Codec) Delete(key interface{}) error
- func (c *Codec) Get(key interface{}) (interface{}, error)
- func (c *Codec) GetStats() *Stats
- func (c *Codec) GetStore() store.StoreInterface
- func (c *Codec) Invalidate(options store.InvalidateOptions) error
- func (c *Codec) Set(key interface{}, value interface{}, options *store.Options) error
- type CodecInterface
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Codec ¶
type Codec struct {
// contains filtered or unexported fields
}
Codec represents an instance of a cache store
func (*Codec) GetStore ¶
func (c *Codec) GetStore() store.StoreInterface
GetStore returns the store associated to this codec
func (*Codec) Invalidate ¶
func (c *Codec) Invalidate(options store.InvalidateOptions) error
Invalidate invalidates some cach items from given options
type CodecInterface ¶
type CodecInterface interface { Get(key interface{}) (interface{}, error) Set(key interface{}, value interface{}, options *store.Options) error Delete(key interface{}) error Invalidate(options store.InvalidateOptions) error Clear() error GetStore() store.StoreInterface GetStats() *Stats }
CodecInterface represents an instance of a cache codec
Click to show internal directories.
Click to hide internal directories.