2024-12-27 22:34:43 +01:00
|
|
|
package data
|
|
|
|
|
|
|
|
|
|
type IDatastore interface {
|
|
|
|
|
Set(key string, val string) error
|
|
|
|
|
KeyExists(key string) (bool, error)
|
|
|
|
|
Get(key string) (string, error)
|
|
|
|
|
GetAll() (map[string]string, error)
|
|
|
|
|
GetAllKeys() (map[string]bool, error)
|
2024-12-28 01:28:36 +01:00
|
|
|
Delete(key string) error
|
2024-12-27 22:34:43 +01:00
|
|
|
}
|