tedious / Stash

The place to keep your cache.
http://www.stashphp.com
BSD 3-Clause "New" or "Revised" License
962 stars 133 forks source link

Ability to specify Redis Prefix #202

Open pborreli opened 9 years ago

pborreli commented 9 years ago

I would like to use multiple application with only one redis server and cannot find the way to specify prefix like in this example :

$redis->setOption(Redis::OPT_PREFIX, 'myAppName:');

Could you point me to a direction ? FYI, i'm using Stash with StashBundle inside a EZ5 project

lolautruche commented 9 years ago

+1

avingtier commented 9 years ago

+1

Nakard commented 9 years ago

Wouldn't namespacing suffice for your needs? (http://www.stashphp.com/Grouping.html#namespaces)

tedivm commented 9 years ago

I can see a need for this, so I'll toss it on the list. Someone is working on a predis driver option, so I'm going to let them finish that up and then add the new option in.

kzap commented 9 years ago

+1 cause redis is shared

jimbojsb commented 8 years ago

FWIW there is also an issue calling clear on the existing redis driver with no key name, which will blow away the entire redis database because it calls FLUSHDB

alexwilson commented 7 years ago

Hey,

Anything happen with this? I've skimmed through the 3 Predis PRs and they all seem to have halted. If there's any interest I can potentially pick up from one.

deancsmith commented 6 years ago

This would also be useful for managing lots of keys on large shared Redis databases.

szepeviktor commented 6 years ago

👍

tedivm commented 6 years ago

Just waiting on a PR :-)