Questions tagged [memcache]

Memcached is a simple distributed object cache that caches information in memory, and can be used to improve the performance of dynamic web applications by reducing access time and database load.

Filter by
Sorted by
Tagged with
3
votes
1answer
782 views

Storing MySQL data in Memcache

I have written a script that checks if data is known in memcached, and if not it queries it from the mysql db and stores it. I would appreciate any inputs if i have done this the "correct" way, since ...
3
votes
1answer
812 views

Simulating memcache get and set race condition and solving it with add

Memcache get and set can hit a race condition if you use them together to achieve something like locking because it is not ...
2
votes
1answer
82 views

Function to lock a file using memcache, Version 2

Based on suggested reviews for Function to lock a file using memcache, I have modified the code to ...
1
vote
2answers
224 views

Generically Cache Database Lookups By Id

For a project I am working on I had to query a database for a number of "child objects". Now in the mapping POJO for said child objects a reference to the parent is kept. That reference is available ...
1
vote
1answer
118 views

Function to lock a file using memcache, Version 1

I have a web application where I list files in the UI to many users at the same time. There are many people who monitor the files and process them. However, I don't want multiple users processing the ...