Method doContains in MemcacheCache cache provider class looks like this
In the case of an empty array stored, the result of casting an empty array is false but actually there's a value in cache with they key $id. As a matter of fact, when you take a look at MemcachedCache cache provider class, the doContains method looks like this:
Which is more accurate in terms of the existance of a value in cache for $id. I had to have a workaround with the above code to make it work with Memcache.
Is there any reason it is like that in MemcacheCache cache provider class and not in MemcachedCache cache provider class?