Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheService ¶
type InMemCacheService ¶
type InMemCacheService struct {
// contains filtered or unexported fields
}
func NewInMemCacheService ¶
func NewInMemCacheService(expiry time.Duration, clearExpiredCacheInterval time.Duration) *InMemCacheService
func (*InMemCacheService) Delete ¶
func (c *InMemCacheService) Delete(key string)
func (*InMemCacheService) Get ¶
func (c *InMemCacheService) Get(key string) (interface{}, bool)
func (*InMemCacheService) Set ¶ added in v1.11.0
func (c *InMemCacheService) Set(key string, value interface{}, expiry time.Duration)
func (*InMemCacheService) SetWithoutExpiry ¶
func (c *InMemCacheService) SetWithoutExpiry(key string, value interface{})
Click to show internal directories.
Click to hide internal directories.