Documentation
¶
Index ¶
- func Clear() error
- func Exist(key string) bool
- func Get[K store.Compare](key string) *K
- func New(config ...Config) error
- func Put(key string, value store.Compare, maxAge ...uint64) bool
- func Remove(key string) bool
- func Set(key string, value store.Compare, maxAge ...uint64) error
- type App
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Exist ¶
Exist checks if a given key exists in the app's data map and returns true if it exists.
Types ¶
type Config ¶
type Config struct {
// Path ke file database.
// Ini adalah lokasi spesifik file.
// Jika path tidak ditentukan, data akan hilang ketika proses dihentikan.
Path string
// Memori maksimal yang akan digunakan,
// ditentukan dalam bit.
// 8.388.608 bit = 1 MB
// default : 8589934592 bit / 1 GB
MAX_MEM uint
}
Click to show internal directories.
Click to hide internal directories.