We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

get memecache by multiple key

Is there a way to get cache by multiple keys in Phalcon? just like Memcached::getMulti https://php.net/manual/en/memcached.getmulti.php

It doesn't look like it. The documentation only shows get()

Actually there is a way. You can query all the keys stored by 'statsKey', i.e. using queryKeys() method: Query the existing cached keys https://docs.phalcon.io/en/latest/api/Phalcon_Cache_Backend_Libmemcached.html

Tip: You can always extend native Phalcon cache adapter and implement PHP's raw method getmulti();