Memcached is a key-value store. It takes the value you give it and
stored it against the key that you give it. Later on, you can give it
the key again and it will return you the value stored against that key.
If you want multiple values stored, then you will need to give them
separate keys. Memcached only ever uses the keys you give it. It
doesn't change them in any way.
In your example, the key is "tag". So your $hash is stored against
"tag" in Memcached. If you want a different instance of your
application to have a different $hash, then you will need to generate
a different key.
Cheers,
Dave...
Quoting Joseph Norris <
joze...@gmail.com>:
> Ok - got MemCached working in my application - thank you for your help.
> One last question: When my web application uses memcache and I do
> $cache->set('tag',$hash); Do I have to figure out some way to have a unique
> tag for each run of my application or does MemCache take care of this?
>
> Thanks again
>
>
> On Tuesday, November 24, 2015 at 7:52:46 AM UTC-7, Ævar Arnfjörð Bjarmason
> wrote:
>
>> Yeah memcache would work. Redis is just another memcache-like solution for
>> the purposes of this discussion.
>> On Nov 24, 2015 3:41 PM, "Joseph Norris" <
joze...@gmail.com <javascript:>>