Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoltDBCache ¶
type BoltDBCache struct {
// contains filtered or unexported fields
}
BoltDBCache is a BoltDB backed key-value store.
func BoltDB ¶
func BoltDB(filepath string) (*BoltDBCache, error)
BoltDB returns a BoltDBCache, which is BoltDB backed key-value store.
func (*BoltDBCache) Close ¶
func (c *BoltDBCache) Close() error
Close releases all database resources.
type MemoryCache ¶
MemoryCache is a simple, thread-safe in-memory key-value store.
func Memory ¶
func Memory() *MemoryCache
Memory returns a MemoryCache, which is a simple, thread-safe in-memory key-value store.
Click to show internal directories.
Click to hide internal directories.