Documentation
¶
Index ¶
- Variables
- func NewExpiringRepository(jsonConfig string) *cache.ExpiringCacheRepository
- type Config
- type Repository
- func (r *Repository) Add(key string, value []byte) error
- func (r *Repository) AddFor(key string, value []byte, expiration time.Duration) error
- func (r *Repository) CompareAndSwap(key string, handler func(value []byte) ([]byte, error)) error
- func (r *Repository) Delete(key string) error
- func (r *Repository) Exist(key string) bool
- func (r *Repository) Get(key string) ([]byte, error)
- func (r *Repository) GetWithFlags(key string) (data []byte, flags uint32, err error)
- func (r *Repository) Reset()
- func (r *Repository) Set(key string, value []byte) error
- func (r *Repository) SetForWithFlags(key string, value []byte, flags uint32, ttl time.Duration) error
- func (r *Repository) SetWithFlags(key string, value []byte, flags uint32) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotImplemented = errors.New("BigCacheRepositor: method not implemented")
ErrNotImplemented means repository method not implemented
Functions ¶
func NewExpiringRepository ¶
func NewExpiringRepository(jsonConfig string) *cache.ExpiringCacheRepository
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(jsonConfig string) *Repository
func NewRepositoryFromConfig ¶
func NewRepositoryFromConfig(config bigcache.Config) *Repository
func (*Repository) CompareAndSwap ¶
func (*Repository) Delete ¶
func (r *Repository) Delete(key string) error
func (*Repository) Exist ¶
func (r *Repository) Exist(key string) bool
func (*Repository) GetWithFlags ¶
func (r *Repository) GetWithFlags(key string) (data []byte, flags uint32, err error)
func (*Repository) Reset ¶
func (r *Repository) Reset()
func (*Repository) SetForWithFlags ¶
func (*Repository) SetWithFlags ¶
func (r *Repository) SetWithFlags(key string, value []byte, flags uint32) error
Click to show internal directories.
Click to hide internal directories.