Documentation ¶
Index ¶
- Constants
- type Bucket
- type Collection
- func (c *Collection) Clear()
- func (c *Collection) Close() *Collection
- func (c *Collection) ContainsKey(key string) (contains bool)
- func (c *Collection) Get(key string) (interface{}, bool)
- func (c *Collection) Open() *Collection
- func (c *Collection) Put(key string, value []byte, contentType string, expAfterSec int) *document.Document
- func (c *Collection) PutOrUpdate(key string, value []byte, contentType string, expAfterSec int) *document.Document
- func (c *Collection) Remove(key string) bool
- func (c *Collection) Size() int
- func (c *Collection) String() string
Constants ¶
View Source
const (
// It will replaced when value of configuration is not same with this value
TTL_SCANNER_DELAY_MILLIS = 1000
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct { Name string Opened bool ScanTtl bool Documents hashmap.Map TtlIndex btree.Tree OpLock sync.Mutex CreatedAt int64 // contains filtered or unexported fields }
func (*Collection) Clear ¶
func (c *Collection) Clear()
func (*Collection) Close ¶
func (c *Collection) Close() *Collection
func (*Collection) ContainsKey ¶
func (c *Collection) ContainsKey(key string) (contains bool)
func (*Collection) Get ¶
func (c *Collection) Get(key string) (interface{}, bool)
func (*Collection) Open ¶
func (c *Collection) Open() *Collection
func (*Collection) Put ¶
func (c *Collection) Put( key string, value []byte, contentType string, expAfterSec int) *document.Document
func (*Collection) PutOrUpdate ¶
func (c *Collection) PutOrUpdate( key string, value []byte, contentType string, expAfterSec int) *document.Document
func (*Collection) Remove ¶
func (c *Collection) Remove(key string) bool
func (*Collection) Size ¶
func (c *Collection) Size() int
func (*Collection) String ¶
func (c *Collection) String() string
Click to show internal directories.
Click to hide internal directories.