Documentation ¶
Index ¶
- Constants
- func NewStore() pluginkv.Service
- func NewStoreWith(service pluginkv.Service) pluginkv.Service
- func NewTransaction(txn kv.Transaction, store *Store) kv.Transaction
- type Store
- func (store *Store) EraseCache(key kv.Key) error
- func (store *Store) EraseCollectionCache(database string, collection string) error
- func (store *Store) EraseDatabaseCache(database string) error
- func (store *Store) GeBufferItems() (int64, error)
- func (store *Store) GeMetrics() (bool, error)
- func (store *Store) GetMaxCost() (int64, error)
- func (store *Store) GetNumCounters() (int64, error)
- func (store *Store) ServiceName() string
- func (store *Store) ServiceType() plugins.ServiceType
- func (store *Store) SetCache(obj *kv.Object) error
- func (store *Store) Start() error
- func (store Store) Stop() error
- func (store *Store) Transact(write bool) (kv.Transaction, error)
- type Transaction
Constants ¶
View Source
const ( NumCounters = "num_counters" MaxCost = "max_cost" BufferItems = "buffer_items" Metrics = "metrics" )
View Source
const ( DefaultNumCounters = 1000 DefaultMaxCost = 1000000 DefaultBufferItems = 64 DefalutMetrics = false )
Variables ¶
This section is empty.
Functions ¶
func NewStoreWith ¶
NewStoreWith returns a new FoundationDB store instance with the specified key coder.
func NewTransaction ¶
func NewTransaction(txn kv.Transaction, store *Store) kv.Transaction
Types ¶
type Store ¶
Store represents a cache store service instance.
func (*Store) EraseCache ¶
EraseCache deletes a cache for the specified key.
func (*Store) EraseCollectionCache ¶
EraseCollectionCache deletes a cache for the specified collection.
func (*Store) EraseDatabaseCache ¶
EraseDatabaseCache deletes a cache for the specified database.
func (*Store) GeBufferItems ¶
func (*Store) GetMaxCost ¶
func (*Store) GetNumCounters ¶
func (*Store) ServiceName ¶
ServiceName returns the plug-in service name.
func (*Store) ServiceType ¶
func (store *Store) ServiceType() plugins.ServiceType
ServiceType returns the plug-in service type.
type Transaction ¶
type Transaction struct { kv.Transaction *Store }
Click to show internal directories.
Click to hide internal directories.