Documentation
¶
Index ¶
- type Cache
- type CacheManager
- type CacheOptions
- type InMemoryCache
- func (c *InMemoryCache) Checksum() string
- func (c *InMemoryCache) Class() string
- func (c *InMemoryCache) Delete(ctx context.Context, key string) error
- func (c *InMemoryCache) Get(ctx context.Context, key string) (string, bool, bool, error)
- func (c *InMemoryCache) Host() string
- func (c *InMemoryCache) Set(ctx context.Context, key string, value string) error
- func (c *InMemoryCache) TTL() time.Duration
- func (c *InMemoryCache) Uncycled() bool
- type InMemoryCacheManager
- type ValkeyCache
- func (s *ValkeyCache) Checksum() string
- func (s *ValkeyCache) Class() string
- func (s *ValkeyCache) Delete(ctx context.Context, key string) error
- func (s *ValkeyCache) Get(ctx context.Context, key string) (string, bool, bool, error)
- func (s *ValkeyCache) Host() string
- func (s *ValkeyCache) Set(ctx context.Context, key string, value string) error
- func (s *ValkeyCache) TTL() time.Duration
- func (s *ValkeyCache) Uncycled() bool
- type ValkeyCacheManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheManager ¶
type CacheManager interface {
Cycle(checksum string, force bool) error
GetCache(class string, opts CacheOptions) Cache
}
func NewCacheManager ¶
func NewCacheManager(addr, host string, ttl *time.Duration) (CacheManager, error)
type CacheOptions ¶
type InMemoryCache ¶
type InMemoryCache struct {
// contains filtered or unexported fields
}
func (*InMemoryCache) Checksum ¶ added in v0.2.7
func (c *InMemoryCache) Checksum() string
func (*InMemoryCache) Class ¶
func (c *InMemoryCache) Class() string
func (*InMemoryCache) Delete ¶
func (c *InMemoryCache) Delete(ctx context.Context, key string) error
func (*InMemoryCache) Host ¶
func (c *InMemoryCache) Host() string
func (*InMemoryCache) TTL ¶
func (c *InMemoryCache) TTL() time.Duration
func (*InMemoryCache) Uncycled ¶
func (c *InMemoryCache) Uncycled() bool
type InMemoryCacheManager ¶
type InMemoryCacheManager struct {
// contains filtered or unexported fields
}
func (*InMemoryCacheManager) Cycle ¶
func (m *InMemoryCacheManager) Cycle(checksum string, force bool) error
func (*InMemoryCacheManager) GetCache ¶
func (m *InMemoryCacheManager) GetCache(class string, opts CacheOptions) Cache
type ValkeyCache ¶
type ValkeyCache struct {
// contains filtered or unexported fields
}
func (*ValkeyCache) Checksum ¶ added in v0.2.7
func (s *ValkeyCache) Checksum() string
func (*ValkeyCache) Class ¶
func (s *ValkeyCache) Class() string
func (*ValkeyCache) Host ¶
func (s *ValkeyCache) Host() string
func (*ValkeyCache) TTL ¶
func (s *ValkeyCache) TTL() time.Duration
func (*ValkeyCache) Uncycled ¶
func (s *ValkeyCache) Uncycled() bool
type ValkeyCacheManager ¶
type ValkeyCacheManager struct {
// contains filtered or unexported fields
}
func (*ValkeyCacheManager) Cycle ¶
func (m *ValkeyCacheManager) Cycle(checksum string, force bool) error
func (*ValkeyCacheManager) GetCache ¶
func (m *ValkeyCacheManager) GetCache(class string, opts CacheOptions) Cache
Click to show internal directories.
Click to hide internal directories.