Memcached PHP Sessions

Jure Petrovic fonz at
Fri Feb 2 18:34:33 UTC 2007

Oh, the second part was actually my question. Sorry :-)

What I suggested was an extra wrapper, in PHP case maybe function that
would you call instead of original set function. That function would
give you a notion that you are setting (or getting) an array, 
where you would actually be setting (or getting) a normal memcached

I mean something like this:

You call your_func_set(variable[x]) which in turn saves your
index like var_x or varx....

Now, when you want to get a specific index, you call something like
your_func_get(var[x]) which in turn calls get(var_x).

Jure Petrovic

On Fri, 2007-02-02 at 15:49 -0200, Roberto Spadim wrote:
> since i'm using PHP and i can't make offsets i don't know if it could 
> work... :/, if we could lock and unlock, and get keys like mysql
> "select 
> blalbal where key like  'key%', i could get keys names with "[" and 
> return then in a multi-get
> but today i can't do it :( 

More information about the memcached mailing list