Add tests for cache and locking

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
Gabriel Adrian Samfira 2025-05-02 09:32:24 +00:00
parent 059734f064
commit 92d04c8e8d
10 changed files with 533 additions and 112 deletions

View file

@ -5,6 +5,7 @@ import "time"
type Locker interface {
TryLock(key, identifier string) bool
Lock(key, identifier string)
LockedBy(key string) (string, bool)
Unlock(key string, remove bool)
Delete(key string)
}