Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { Set(key string, value map[string]string) Get(key string) (map[string]string, bool) Len() int }
Cache is an interface for cache that stores parsed user agents
type LRUCache ¶
type LRUCache struct {
*lru.Cache
}
LRUCache is the wrapper of lru cache implementation from hashicorp for storing parsed user agents
func NewLRUCache ¶
NewLRUCache creates new wrapper for storing parsed user agents
Click to show internal directories.
Click to hide internal directories.