This function returns the semaphore set identifier associated with the argument key.
这个函数返回一个信号量集标识符,它与一个参数的键值关联在一起。
The schema constraint count(key('ids', .)) = 1 checks the set of all identifiers to be sure that only one has the current value (in other words whether the identifier is unique).
模式将限定count(key('ids',.) ) =1检查所有的标识符,从而确保只有一个包含当前值(换句话说,确定该标识符是否是惟一的)。
The key is a unique identifier that is used by different processes to identify this semaphore set.
key是一个惟一的标识符,不同的进程使用它来标识这个信号量集。
set(key, value [, expiry]) — Stores the specified value using the identifier key in the cache.
set(key,value [,expiry]) —使用缓存内的标识符键存储这个特定的值。
set(key, value [, expiry]) — Stores the specified value using the identifier key in the cache.
set(key,value [,expiry]) —使用缓存内的标识符键存储这个特定的值。
应用推荐