Re: Is clearing out the cache necessary?

2009-08-03 Thread dormando
On Wed, 29 Jul 2009, blazah wrote: Hi, What do folks do with the objects stored in memcached when a new version of the software is deployed? There is the potential that the data could be stale depending on the code changes so do people typically just flush the cache? Generally you know

Re: Memcache Question

2009-08-03 Thread dormando
Hey, You might want to consider using 'add' with a zero byte value (or just a single byte value, whatever). Then every time you just run the single add command. If it fails you're fetching too fast. If it works then the key didn't exist already. There're a bunch of ways of doing more proper

Re: memcached - expire (again)

2009-08-03 Thread dormando
I wouldn't recommend anyone use the ALLOW_SLABS_REASSIGN code as it is - it is unproven and we probably should have removed it a long time ago. It'll come back as a proper implementation soon enough. -Dormando On Tue, 28 Jul 2009, Mike Lambert wrote: Werner you never mentioned which version

Issue tracker now set to spam the mailing list

2009-08-03 Thread dormando
Yo, Updates to the issue tracker should now all hit the mailing list. The traffic over there is relatively low, but only a small handful of us actively check it - I'd prefer all information go to the same place. A few threads which should have been mailing list discussions have instead been held

Re: Patch to allow -F option to disable flush_all

2009-08-03 Thread dormando
Hey, I read the whole thread and thought about it for a bit... I'm not sure we should do this. Especially not as an explicit solution to a security problem with a shared hosting cluster. We can roadmap out a method of multitenancy (dustin's apparently done proof of concept before, and I can

Re: Issue tracker now set to spam the mailing list

2009-08-03 Thread Matt Ingenthron
dormando wrote: Yo, Updates to the issue tracker should now all hit the mailing list. The traffic over there is relatively low, but only a small handful of us actively check it - I'd prefer all information go to the same place. I think this is a good change... A few threads which should

Re: Issue tracker now set to spam the mailing list

2009-08-03 Thread Toru Maesaka
Awesome! I think this is a handy change to get potential bugs identified and fixed as soon as possible. On Aug 3, 2009, at 5:50 PM, dormando dorma...@rydia.net wrote: Yo, Updates to the issue tracker should now all hit the mailing list. The traffic over there is relatively low, but only

Re: Patch to allow -F option to disable flush_all

2009-08-03 Thread Adam Lee
Yeah, I'm inclined to agree with you... Disabling flush seems like a bit of a red herring. Sure, it prevents one very particular case, but at best it provides a false sense of safety. If we were going to do anything like this, perhaps we could consider doing something like how Tokyo

Need help getting starting w/ python memcache..

2009-08-03 Thread JJ
I'm not seeing many examples on the web using memcache and python. Can someone show me a quick sample of how to set up, add and retrieve data from memcache? thanks, JJ

Re: Need help getting starting w/ python memcache..

2009-08-03 Thread Gavin M. Roy
There is an easy to use pure python module called python-memcached available at tummy.com: http://www.tummy.com/Community/software/python-memcached/ You can install it by doing: easy_install python-memcached If you look at the memcache.py script, you'll see a usage example in the tests towards

Re: Need help getting starting w/ python memcache..

2009-08-03 Thread Jozef Sevcik
No, it isn't, check out this to read more: http://code.google.com/p/memcached/wiki/FAQ#Can_I_iterate_the_items_of_the_memcached_server? 2009/8/3 Jeremiah Jester jeremiahjes...@gmail.com: Thanks. Also, another question... Is there a way in php to retrieve a list of all set keys and data for

memcached FAQ links to obsolete binary protocol doc

2009-08-03 Thread Mat Hostetter
The memcached FAQ links to this document describing the binary protocol: http://code.google.com/p/memcached/wiki/MemcacheBinaryProtocol Unfortunately, this document is out of date compared to the protocol-binary.xml that ships with 1.4.0. For example, it is missing various opcodes like

Re: memcached FAQ links to obsolete binary protocol doc

2009-08-03 Thread Dustin
On Aug 3, 7:37 pm, Mat Hostetter mjhostet...@gmail.com wrote: The memcached FAQ links to this document describing the binary protocol:    http://code.google.com/p/memcached/wiki/MemcacheBinaryProtocol Unfortunately, this document is out of date compared to the protocol-binary.xml that

Issue 70 in memcached: Incorrect data type when referencing the data size of an item.

2009-08-03 Thread codesite-noreply
Status: Accepted Owner: dsallings Labels: Type-Defect Priority-Medium New issue 70 by dsallings: Incorrect data type when referencing the data size of an item. http://code.google.com/p/memcached/issues/detail?id=70 The item struct records the number of bytes as an int. This should be

Issue 68 in memcached: incr/decr resize corruption

2009-08-03 Thread codesite-noreply
Updates: Status: New Comment #1 on issue 68 by dsallings: incr/decr resize corruption http://code.google.com/p/memcached/issues/detail?id=68 I'm marking this as new as opposed to accepted since accepted implies that the problem has been reproduced. Here I'm just recording something