mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-09-04 22:53:17 +08:00
12 lines
196 B
Go
12 lines
196 B
Go
package cache
|
|
|
|
import (
|
|
"context"
|
|
"time"
|
|
)
|
|
|
|
type Lock interface {
|
|
Lock(ctx context.Context, key string, timeout time.Duration) (string, error)
|
|
Unlock(ctx context.Context, key, value string)
|
|
}
|