Open kaczenski opened 8 years ago
/** * {@inheritdoc} */ protected function doContains($id) { return (bool) $this->memcache->get($this->prefix.$id); }
The boolean cast bars us to store data that is casted to false. We checked it is possible to save and fetch data like 0 (ZERO). But the doContains() method make us believe it is not saved.
It should either be "!==null" or "!==false" (I would have to consult the extension). Maybe you can do a PR?
Fixed in https://github.com/mevdschee/TqdMemcacheBundle/commit/a7d976547547c03892fa21297b90584412afdd37
The boolean cast bars us to store data that is casted to false. We checked it is possible to save and fetch data like 0 (ZERO). But the doContains() method make us believe it is not saved.