开发者

Predis Class '\Predis\Commands\StringSetExpire' not found

开发者 https://www.devze.com 2023-03-18 06:29 出处:网络
I have a very odd predis error: Class \'\\Predis\\Commands\\StringSetExpire\' not found in <b>/Users/charlie/Sites/Admin/predis/lib/Predis/Profiles/ServerProfile.php</b>

I have a very odd predis error:

Class '\Predis\Commands\StringSetExpire' not found in <b>/Users/charlie/Sites/Admin/predis/lib/Predis/Profiles/ServerProfile.php</b>

It happens when I try to use the following code:

setex($this->get_cache_key(), (60 * 60 * 24 * 30), $serialized);

The file exists. I change 开发者_JS百科directory to that exact location and I open a valid file. So, I feel that my paths are correct. I am trying to use an AJAX command to set the key, value in the redis database. What's weird is when I execute the php file from the terminal using "php filename", it doesn't throw an error at all.

0

精彩评论

暂无评论...
验证码 换一张
取 消