Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustParseInt ¶
Types ¶
type Database ¶
type Database struct { MaxPartitionNum int LocalDataDir string Singleton bool // contains filtered or unexported fields }
func NewDatabase ¶
func (*Database) Set ¶
func (db *Database) Set(ctx context.Context, key []byte, w func([]byte, *time.Time) ([]byte, *time.Time, error)) error
Set sets the value for a key.
Buckets:
system: { version: "1", keys: "number of keys", expires: "number of keys with an expiration", total_write_commands_processed: "Total number of write commands processed by the server" } value: { $key: $value } pxat: { $key: "Unix timestamp at which the key will expire, in milliseconds." }
Click to show internal directories.
Click to hide internal directories.