Documentation ¶ Index ¶ type Object type Store func New(initialSize, maxSize uint) *Store func (s *Store) Get(key string) (o *Object) func (s *Store) Put(key string, object Object) (o *Object) func (s *Store) Remove(key string) func (s *Store) Size() int Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Object ¶ type Object struct { Value string } type Store ¶ type Store struct { // contains filtered or unexported fields } func New ¶ func New(initialSize, maxSize uint) *Store func (*Store) Get ¶ func (s *Store) Get(key string) (o *Object) func (*Store) Put ¶ func (s *Store) Put(key string, object Object) (o *Object) func (*Store) Remove ¶ func (s *Store) Remove(key string) func (*Store) Size ¶ func (s *Store) Size() int Source Files ¶ View all Source files store.go Click to show internal directories. Click to hide internal directories.