My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
TableSerialisation  
Serialisation of table structures for storage in Memcached
Updated Feb 4, 2010 by nr...@ii.net

Summary

Example

local Memcached = require('Memcached')
local json = require('json')

local m = Memcached.Connect()

m:set_encode(json.encode)
m:set_decode(json.decode)

-- implicitly calls the 'encode' function above
m:set('some_key', {a = 1, b = 2, c = 3})

-- implicitly calls the 'decode' function above
local obj = m:get('some_key')

Sign in to add a comment
Powered by Google Project Hosting