Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache interface { Del(key string) error // Get could use buffer/streaming Get(key string) ([]byte, error) // Set could use buffer/streaming Set(key string, value []byte) error }
Cache could be defined by user
var DefaultCache Cache
type StorageCache ¶
type StorageCache struct {
// contains filtered or unexported fields
}
func NewStorageCache ¶
func NewStorageCache(db *badger.DB) *StorageCache
func (*StorageCache) Del ¶
func (c *StorageCache) Del(key string) error
Click to show internal directories.
Click to hide internal directories.