Questions tagged [python-memcached]

Python-memcached is a Python based API (implemented in 100% python) for communicating with the memcached distributed memory object cache daemon.

Python-memcached is a Python based API (implemented in 100% python) for communicating with the memcached distributed memory object cache daemon.

Code is based off the code written by Evan Martin of Danga. Sean Reifschneider of tummy.com has taken over maintenance of the code.

55 questions
0
votes
0 answers

django Cache only gets set on page reload

I am trying my hands around using memcache with django on per-view cache. The trouble is cache only gets set if i refresh a page,clicking on same link does not sets the cache.(that is if i set cache_view on dispatch and reload page, i see the number…
vijay shanker
  • 2,517
  • 1
  • 24
  • 37
0
votes
1 answer

Calling memcache.set_multi_async doesn't save values

I'm currently using the Google memcache API in my Google Appsengine application to store a large amount of data in cache, however this needs to happen asynchronously as I need to return a result before it is done. I already found an answer here…
0
votes
1 answer

How to cache a list of requests in Django views?

I'd like to keep the list of 'Last Seen' 20 requests into a Django view. Also I want to avoid creating a separate model for it and just keep the requested urls in memcached, by pushing each new request to a fixed size queue and then retrieve the…
Jand
  • 2,527
  • 12
  • 36
  • 66
0
votes
1 answer

Limiting the size of memcache storage

I am using the FUSE file system fuse.py and plan to use memcache to store the files. I want to have a small amount of memcache space so that I know what files are being stored and what files are being replaced. I understand that Memcache has slabs…
TheFallenOne
  • 1,598
  • 2
  • 23
  • 57
0
votes
3 answers

Querying python memcached data

I am storing some number of records in python memcach. The object structure is as shown below. How can i access or get records just like querying a database. class CartDetails(models.Model): id = models.AutoField(primary_key=True) …
Anish
  • 872
  • 5
  • 21
  • 42
0
votes
2 answers

Sessions on Memcached in Django , the cache expire time allways 300s when i set SESSION_COOKIE_AGE = 0

My Django Settings.py like that: CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache', #'LOCATION': os.environ['MEMCACHED'] 'LOCATION': "127.0.0.1", #"BINARY" : True, …
Bina
  • 21
  • 3
0
votes
1 answer

How to name/arrange my memcached keys when I have Django objects with multiple foreign keys?

I have an existing Django app that doesn't do any Database caching. I am working to implement memcached to get a performance boost and reduce the amount of expensive database hits. The strategy I will use is as follows: Every time I am querying the…
Saqib Ali
  • 11,931
  • 41
  • 133
  • 272
0
votes
1 answer

python-memcache memcached -- I installed on centos virtualbox but it get/set never seem to work

I'm using python. I did a yum install memcached followed by a easy_install python-memcached I used the simple test program from the Help(memcache). When I wasn't getting the proper answers I threw in some print statements: [~/test]$ cat…
Div
  • 130
  • 1
  • 14
0
votes
1 answer

Django Cache - Issue displaying images retrieved from cache

I am using django 1.4, python 2.7, Memcache, python-memcached, and easy-thumbnails. When I try to access an item page using cached data I get the following template error: Couldn't get the thumbnail uploads/items/item_images/logo.jpeg:…
Clayton
  • 285
  • 1
  • 17
0
votes
1 answer

How can I make my App Engine Datastore user search faster?

I need to be able to search my users faster. A search without memcache takes 8 seconds. Now my code utilizes memcache with the help of Not Dot Net which reduces the search time to 4 sec. My question now is, how can I make it faster? qUserSearch =…
Jon Ramvi
  • 714
  • 1
  • 6
  • 19
1 2 3
4