Skip to content
Snippets Groups Projects
Commit 1b10d910 authored by Wolfgang Welz's avatar Wolfgang Welz
Browse files

Add SetWithTTL to the Database interface

parent 56db4675
No related branches found
No related tags found
No related merge requests found
package database package database
import "time"
type Database interface { type Database interface {
Set(key []byte, value []byte) error Set(key []byte, value []byte) error
SetWithTTL(key []byte, value []byte, ttl time.Duration) error
Contains(key []byte) (bool, error) Contains(key []byte) (bool, error)
Get(key []byte) ([]byte, error) Get(key []byte) ([]byte, error)
ForEach(func(key []byte, value []byte)) error ForEach(func(key []byte, value []byte)) error
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment