Documentation
¶
Index ¶
- type Creator
- type GCache
- type Option
- type Options
- type Provider
- func (p *Provider) Close() error
- func (p *Provider) GetOpenStores() []storage.Store
- func (p *Provider) GetStoreConfig(name string) (storage.StoreConfiguration, error)
- func (p *Provider) OpenStore(name string) (storage.Store, error)
- func (p *Provider) SetStoreConfig(name string, config storage.StoreConfiguration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCache ¶
type GCache interface {
Get(key interface{}) (interface{}, error)
SetWithExpire(key, value interface{}, expiration time.Duration) error
Remove(key interface{}) bool
Purge()
}
GCache represents GCache implementation.
type Option ¶
type Option func(options *Options)
Option configures Options.
func WithExpiration ¶
WithExpiration sets the custom cache expiration duration.
func WithGCacheCreator ¶
WithGCacheCreator sets the function to create a new GCache instance.
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
Options configures Provider dependencies.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider contains dependencies for a storage provider based on GCache.
func NewProvider ¶
NewProvider returns a new storage provider instance based on GCache.
func (*Provider) GetOpenStores ¶
GetOpenStores is not implemented.
func (*Provider) GetStoreConfig ¶
func (p *Provider) GetStoreConfig(name string) (storage.StoreConfiguration, error)
GetStoreConfig is not implemented.
func (*Provider) SetStoreConfig ¶
func (p *Provider) SetStoreConfig(name string, config storage.StoreConfiguration) error
SetStoreConfig is not implemented.
Click to show internal directories.
Click to hide internal directories.