我想知道除了APC缓存之外,PHP还有其他简单易用的缓存机制,它可以在运行CGI的情况下正常工作.
配置命令
'./configure' '--prefix=/usr/local/php5' '--enable-force-cgi-redirect' '--enable-fastcgi' '--with-config-file-path=/usr/local/etc/php5/cgi' '--with-curl=/usr/local/lib' '--with-gd' '--with-gettext' '--with-jpeg-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib' '--with-kerberos' '--with-openssl' '--with-mcrypt' '--with-mhash' '--with-mysql=/usr' '--with-mysqli=/usr/bin/mysql_config' '--with-pcre-regex=/usr/local' '--with-pdo-mysql=/usr' '--with-pear' '--with-png-dir=/usr/local/lib' '--with-zlib' '--with-zlib-dir=/usr/local/lib' '--enable-zip' '--enable-gd-native-ttf' '--with-iconv=/usr/local' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-mbstring'
服务器API CGI/FastCGI
我正在寻找的是一个简单的内存缓存系统,它允许我存储变量,设置TTL,然后从内存中检索它们.我不是在寻找操作码缓存.
注意:我无法切换到PHP CLI或其他SAPI.我也尝试在这个环境中安装APC,它只按照请求工作(刷新时无法访问).