Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道 Memcached 是否有任何方法可以停止其 LRU 键集合,以便我可以找到分配给 memcached 的给定内存在什么时候已满。
我不希望 memcached 在空间不足时刷新旧键。
使用 -M 开关,当内存耗尽时 memcached 将返回错误而不是删除项目。
例子:
memcached -d -m 1000 -M
这运行 memcached 守护进程,最大内存为 1000 MB。消耗完 1000 MB 时会返回错误。