Documentation ¶
Index ¶
- type CacheEntry
- type Config
- type Service
- func (s *Service) Clear(entity *_meta.Entity)
- func (s *Service) ClearAll()
- func (s *Service) CloseAll()
- func (s *Service) Del(entity *_meta.Entity, key *_meta.Key, keyArgs ...interface{})
- func (s *Service) DelUnsafe(entity *_meta.Entity, key *_meta.Key, keyArgs ...interface{})
- func (s *Service) Get(entity *_meta.Entity, key *_meta.Key, keepRLock bool, keyArgs ...interface{}) (*_meta.Object, bool)
- func (s *Service) GetUnsafe(entity *_meta.Entity, key *_meta.Key, keepRLock bool, keyArgs ...interface{}) (*_meta.Object, bool)
- func (s *Service) Lock(entity *_meta.Entity)
- func (s *Service) RLock(entity *_meta.Entity)
- func (s *Service) RUnlock(entity *_meta.Entity)
- func (s *Service) Set(key *_meta.Key, object *_meta.Object, keyArgs ...interface{}) bool
- func (s *Service) SetUnsafe(key *_meta.Key, object *_meta.Object, keyArgs ...interface{}) bool
- func (s *Service) Shutdown() (err error)
- func (s *Service) Unlock(entity *_meta.Entity)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheEntry ¶
type CacheEntry struct {
// contains filtered or unexported fields
}
CacheEntry - элемент кеширования
type Config ¶
type Config struct { NumCounters int64 `json:"num_counters,omitempty" yaml:"num_counters"` // number of keys to track frequency of (10M) MaxCost int64 `json:"max_cost,omitempty" yaml:"max_cost"` // maximum cost of cache (1GB) BufferItems int64 `json:"buffer_items,omitempty" yaml:"buffer_items"` // number of keys per Get buffer Metrics bool `json:"metrics,omitempty" yaml:"metrics"` // whether cache statistics are kept IgnoreInternalCost bool `json:"ignore_internal_cost,omitempty" yaml:"ignore_internal_cost"` // cost of internally storing the value should be ignored }
Config конфигурационные настройки
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represent a Ristretto Cache service
Click to show internal directories.
Click to hide internal directories.