EdgarsK Posted December 24, 2012 Report Share Posted December 24, 2012 Pa lielam nekas traģisks, lapā ir 2 vietas kur tiek lietots memcached, vienā (query result cache) viss darbojas, bet šeit, pie plika testa nestrādā. Varbūt Jūs pamanīsiet kaut ko tādu, ko es nespēju pamanīt? :) <?php $this->mc = new Memcache; if(!$this->mc->connect('127.0.0.1', 11211)){ die('memcache failure'); } $hash = hash('adler32','test'); $this->mc->set('htm'.$hash,100,0,300); echo "Result: ",var_dump($this->mc->get('htm'.$hash)); Result: bool(false) būtu jābūt 100 ne? Quote Link to comment Share on other sites More sharing options...
daGrevis Posted December 24, 2012 Report Share Posted December 24, 2012 Ko atgriež `set` metode? Paskaties API — http://php.net/manual/en/memcache.set.php. Quote Link to comment Share on other sites More sharing options...
EdgarsK Posted December 24, 2012 Author Report Share Posted December 24, 2012 atgriež false Quote Link to comment Share on other sites More sharing options...
daGrevis Posted December 24, 2012 Report Share Posted December 24, 2012 Tobiš problēma ir pie settošanas, ne gettošanas. Pamēģini padot tikai ar "needed" argumentiem. Quote Link to comment Share on other sites More sharing options...
F3llony Posted December 25, 2012 Report Share Posted December 25, 2012 Notesto memcaches serveri no kāda cita klienta, ne-php. Problēma varētu būt MC konfigā vai kastē, ne php. Savienojums nefeilo, bet rakstīšana gan. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.