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

Memcache Keys Not Expiring

        > //设置memcache session缓存
        > $di->set('smssession', function(){
        >     $memcache = new Phalcon\Session\Adapter\Memcache(array(
        >         'uniqueId'   => 'msms',
        >         'host'       => '127.0.0.1',
        >         'port'       => 11211,
        >         // 'lifetime'   => 1,            // 300 5分钟
        >         'prefix'     => 'xxf',
        >         'persistent' => false
        >     ));
        >     $memcache->start();
        >     return $memcache;
        > });

as above: but my smssession never end after 300 second, why


17.5k

You have 'lifetime' commented out.



27.0k

no , when I dont comment 'lifetime' session also cannot end