Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLRUCache ¶
func NewLRUCache(size int, storage interfaces.Storage) interfaces.Cache
NewLRUCache constructor.
Types ¶
type DoublyLinkedList ¶
func (*DoublyLinkedList) Clean ¶
func (l *DoublyLinkedList) Clean()
func (*DoublyLinkedList) GetHead ¶
func (l *DoublyLinkedList) GetHead() *DllItem
func (*DoublyLinkedList) GetLength ¶
func (l *DoublyLinkedList) GetLength() int
func (*DoublyLinkedList) MoveHead ¶
func (l *DoublyLinkedList) MoveHead(i *DllItem)
Move item to the head of doubly linked list.
func (*DoublyLinkedList) PopTail ¶
func (l *DoublyLinkedList) PopTail() interface{}
Remove tail item and return its value.
func (*DoublyLinkedList) PushHead ¶
func (l *DoublyLinkedList) PushHead(v interface{}) *DllItem
Push value to the head of doubly linked list.
type LRUCache ¶
type LRUCache struct {
// contains filtered or unexported fields
}
LRUCache implements Least Recently Used cache
func (*LRUCache) HasPreview ¶
func (c *LRUCache) HasPreview(params *entities.PreviewParams) bool
HasPreview searches preview in cache.
type Previewer ¶
type Previewer struct {
// contains filtered or unexported fields
}
Previewer object for image operations
func NewPreviewer ¶
func NewPreviewer( loader interfaces.ImageLoader, processor interfaces.ImageProcessor, senders []interfaces.Sender, ) *Previewer
NewPreviewer constructor.
Click to show internal directories.
Click to hide internal directories.