CakeFest 2024: The Official CakePHP Conference

预定义常量

Memcache 常量
常量名 描述
MEMCACHE_COMPRESSED (int) 用于通过 Memcache::set()Memcache::add()Memcache::replace() 打开实时数据压缩。
MEMCACHE_HAVE_SESSION (int) 如果此 Memcache session 处理程序可用,则为 1,否则为 0。
MEMCACHE_USER1 (int) 用于通过 Memcache::set()Memcache::add()Memcache::replace() 打开用户定义的应用程序 flag。
MEMCACHE_USER2 (int) 用于通过 Memcache::set()Memcache::add()Memcache::replace() 打开用户定义的应用程序 flag。
MEMCACHE_USER3 (int) 用于通过 Memcache::set()Memcache::add()Memcache::replace() 打开用户定义的应用程序 flag。
MEMCACHE_USER4 (int) 用于通过 Memcache::set()Memcache::add()Memcache::replace() 打开用户定义的应用程序 flag。
add a note

User Contributed Notes 1 note

up
-15
Joan
14 years ago
MEMCACHE_COMPRESSED=2
Using value of 1 produces serialization errors when retrieving values.
To Top