Add tests for cache and locking
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
059734f064
commit
92d04c8e8d
10 changed files with 533 additions and 112 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue