To make memcache session handling easily shared across a multi-site install, we really need to be able to have prefixes defined by bin. My patch attempts to handle this a lot like the DB prefixes are handled. If the prefix value is a string, it's applied to all keys. If it's an array, it uses the appropriate prefix. The 'default' key will be the default prefix just like the DB code does it.

The patch is against 6.x-1.7, but it doesn't look like the dmemcache.inc code in the 6.x branch has really changed since then.

Comments

niteman’s picture

subscribing

rwohleb’s picture

Status: Active » Needs review
thehong’s picture

Status: Needs review » Needs work

There's no document for user?

rwohleb’s picture

Do you mean documentation?

thehong’s picture

Yes, documentation for end user know how to define memcache_key_prefix.

catch’s picture

Status: Needs work » Closed (duplicate)
gdud’s picture

StatusFileSize
new2.19 KB

Attached patch should work with 6.x-1.10.