XF 2.1 Memcached how to set and get?

Improvs

Member
Hi, trying to figure out how to set and get key-value with memcached.

For example, I have the PHP function which return some different counters (total ids, answers, questions, filters).

For this and similar cases l would like to use lifetime cache.

As I understand, memcached PHP extention allow me to set keys with values.

I read documentation, how to config memcached in config.php

But I didn't find a way, how to call to memcached Obj, how to use set and get functions somewhere in XF plugin.

Please do not blame for the stupid questions. :rolleyes: I'm a newbie and I may be wrong about something, help me figure it out 🆘
 
Top Bottom