Documentation ¶
Overview ¶
table provides the client table interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientTable ¶
type ClientTable struct {
// contains filtered or unexported fields
}
ClientTable represents a client table database.
func New ¶
func New(defaultExpiration, cleanupInterval time.Duration) *ClientTable
New creates a new client table.
func (*ClientTable) Get ¶
func (t *ClientTable) Get(k string) (interface{}, bool)
Get returns the record for a key.
func (*ClientTable) Set ¶
func (t *ClientTable) Set(k string, x interface{})
Set sets a value for a key.
func (*ClientTable) Undo ¶
func (t *ClientTable) Undo(k string)
Undo reverts to the last record for a key.
Click to show internal directories.
Click to hide internal directories.