mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-05 16:57:06 +08:00
fix comments and readme
This commit is contained in:
@@ -127,6 +127,7 @@ func (locks *Locks) RUnLocks(keys ...string) {
|
||||
}
|
||||
}
|
||||
|
||||
// RWLocks locks write keys and read keys together. allow duplicate keys
|
||||
func (locks *Locks) RWLocks(writeKeys []string, readKeys []string) {
|
||||
keys := append(writeKeys, readKeys...)
|
||||
indices := locks.toLockIndices(keys, false)
|
||||
@@ -146,6 +147,7 @@ func (locks *Locks) RWLocks(writeKeys []string, readKeys []string) {
|
||||
}
|
||||
}
|
||||
|
||||
// RWUnLocks unlocks write keys and read keys together. allow duplicate keys
|
||||
func (locks *Locks) RWUnLocks(writeKeys []string, readKeys []string) {
|
||||
keys := append(writeKeys, readKeys...)
|
||||
indices := locks.toLockIndices(keys, true)
|
||||
|
Reference in New Issue
Block a user