最快的PHP内存缓存/哈希表 [英] Fastest PHP memory cache/hashtable

查看:126
本文介绍了最快的PHP内存缓存/哈希表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找可用于PHP的最快的内存中缓存/哈希表.

I'm looking for the fastest in-memory cache/hashtable available for PHP.

我将在其中存储一些系统配置值,并试图将开销降至最低.

I will be storing some system-configuration values in it and I'm trying to get the least possible overhead.

数据将很小而且很细.

您会推荐什么,为什么?

What would you recommend and why?

推荐答案

如果您尚未安装APC或Memcached(或不想为此使用它们),也可以

If you dont have APC or Memcached installed already (or dont want to use them for this) you can also create a RAM disk. Then use file_get_contents() and file_put_contents() where filename is your key and the file content is your value. I dont have numbers for that, but it should be fast.

这篇关于最快的PHP内存缓存/哈希表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆