README ¶ Map which expires its values Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type TTLMap func New(ctx context.Context, maxTTL int) (m *TTLMap) func (m *TTLMap) Delete(k string) (v interface{}) func (m *TTLMap) Get(k string) (v interface{}) func (m *TTLMap) Len() int func (m *TTLMap) Put(k string, v interface{}) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type TTLMap ¶ type TTLMap struct { // contains filtered or unexported fields } func New ¶ func New(ctx context.Context, maxTTL int) (m *TTLMap) func (*TTLMap) Delete ¶ func (m *TTLMap) Delete(k string) (v interface{}) func (*TTLMap) Get ¶ func (m *TTLMap) Get(k string) (v interface{}) func (*TTLMap) Len ¶ func (m *TTLMap) Len() int func (*TTLMap) Put ¶ func (m *TTLMap) Put(k string, v interface{}) Source Files ¶ View all Source files ttlmap.go Click to show internal directories. Click to hide internal directories.