Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryStorage ¶
type MemoryStorage struct { sync.RWMutex Capacity int TTL time.Duration // contains filtered or unexported fields }
func (*MemoryStorage) ListAll ¶
func (s *MemoryStorage) ListAll() ([]Request, error)
func (*MemoryStorage) Purge ¶
func (s *MemoryStorage) Purge() (int, error)
func (*MemoryStorage) Put ¶
func (s *MemoryStorage) Put(req Request) error
Click to show internal directories.
Click to hide internal directories.