I tried the code the gave and it worked for me using php-memcache 2.1.2.
On Tue, Feb 26, 2008 at 3:51 AM, Jeanot Bruchmann <[EMAIL PROTECTED]>
wrote:
> Hi there,
>
> first, sorry for the poor english.
>
> I hope, you can help me out with the follow problem:
>
> PHP-Code:
> $memcache = new Memcache;
> $memcache->addServer('127.0.0.1', 11211);
> $memcache->flush();
> $memcache->set('Lock', "Locked");
>
> if ($memcache->get('Lock'))
> {
> echo "Lock found";
> }
> else
> {
> echo "Lock not found";
> }
>
>
> Output:
> Lock not found
>
> Why???
> Write PHP the Memcache after the Script has ended? Can you help me?
>
> regards
> Jeanot Bruchmann
>
> _______________________________________
> GRATIS: Movie-FLAT. Jetzt freischalten!
> http://freemail.web.de/club/maxdome.htm
>
>