Sat, 31 Jul 2010 16:09:11 +0100
Memory is the storehouse in which the substance of our knowledge is treasured up.
module("memcache", package.seeall); function new() local cache = {}; local _data = {}; local _flags = {}; function cache:set(key, flags, expires, data) if expires ~= 0 then return false, "Expiry is not currently implemented"; end _flags[key] = flags; _data[key] = data; return true; end function cache:get(key) return _flags[key], _data[key]; end return cache; end return _M;