2021-07-09 18:32:27 +02:00
|
|
|
// ___ ____ ___ ___
|
|
|
|
// \ \ / / | _ | __| \ \ / / || | __ || || _ |
|
|
|
|
// \ \/ / |___ | |__ \ \/ / || |___ || ||___|
|
|
|
|
// \ / | _ | _ | \ / || __ | || ||\\
|
|
|
|
// \/ |___ |___ | \/ || ____| || || \\
|
2021-07-23 16:10:37 +02:00
|
|
|
//
|
2021-07-09 18:32:27 +02:00
|
|
|
// Copyright (c) 2021 Piotr Biernat. https://pbiernat.dev. MIT License
|
|
|
|
// Repo: https://git.pbiernat.dev/golang/vegvisir
|
|
|
|
|
2021-07-23 16:10:37 +02:00
|
|
|
package cache
|
2021-07-10 23:57:45 +02:00
|
|
|
|
2021-07-23 16:10:37 +02:00
|
|
|
type CacheDatastore interface {
|
|
|
|
SetKey(string, interface{}, int) error
|
2021-07-10 23:57:45 +02:00
|
|
|
|
2021-07-23 16:10:37 +02:00
|
|
|
GetKey(string) (interface{}, error)
|
2021-07-24 17:46:22 +02:00
|
|
|
|
|
|
|
IsConnected() bool
|
2021-07-08 22:21:07 +02:00
|
|
|
}
|