Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryHttpTtlCache ¶
type InMemoryHttpTtlCache struct {
// contains filtered or unexported fields
}
func NewInMemoryHttpTtlCache ¶
func NewInMemoryHttpTtlCache( memoryLimit string, maxAge time.Duration, ) *InMemoryHttpTtlCache
func (InMemoryHttpTtlCache) Delete ¶
func (i InMemoryHttpTtlCache) Delete(key string)
func (InMemoryHttpTtlCache) Get ¶
func (i InMemoryHttpTtlCache) Get(key string) (req []byte, ok bool)
func (InMemoryHttpTtlCache) MaxAge ¶
func (i InMemoryHttpTtlCache) MaxAge() time.Duration
func (InMemoryHttpTtlCache) Set ¶
func (i InMemoryHttpTtlCache) Set(key string, req []byte)
Click to show internal directories.
Click to hide internal directories.