memcache storage fix

local variable replaced with class variable in constructor