(id string)
| 83 | } |
| 84 | |
| 85 | func (c *LockCache) encodeIdKey(id string) string { |
| 86 | // Safety against accidents |
| 87 | if !c.isIdKey(id) { |
| 88 | return idKeyPrefix + id |
| 89 | } |
| 90 | return id |
| 91 | } |
| 92 | |
| 93 | func (c *LockCache) decodeIdKey(key string) string { |
| 94 | // Safety against accidents |
no test coverage detected