2022 Developer Survey is open! Take survey.

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
1 vote
2 answers
251 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 ...
user avatar
  • 25k
3 votes
1 answer
802 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 ...
user avatar
  • 133
2 votes
1 answer
86 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 ...
user avatar
  • 307
1 vote
1 answer
121 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 ...
user avatar
  • 307
3 votes
1 answer
941 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 ...
user avatar
  • 307