There is a need to create your own caching system (such as Meamecache). I do not know where to look, what to look for. Prompt for search keywords.

  • one
    for what? words, cache, memkesh how to write? - Gorets
  • @Gorets for each project need its own mechanism. - shushlyakov
  • @ Vadim Shushlyakov For building each box up with your hammer? Or "let the bad, but his"? - alexlz
  • @ Vadim Shushlyakov, "creating your own caching system. A lesson for dummies, noobs ..." - Salivan

2 answers 2

Good day. I can give the selection of links a slightly deeper understanding of the caching mechanism (not superficial), namely the invalidation of the cache on the event through the principle of cache tagging. As we know, there are two ways to invalidate the cache (to make it rotten):

  • on time;
  • by event (for example, there were some changes in the database, through the admin area, front-end, or otherwise)

Both of these methods can be combined.

Actually, here is a list of links to material on cache tagging.

http://dklab.ru/chicken/nablas/47.html

http://tokarchuk.ru/2012/07/tagging-in-memory-cache/

http://habrahabr.ru/post/43539/

http://habrahabr.ru/post/159079/

As a rule, in most well-known frameworks there is a solution to a similar problem, but sometimes it is not enough.

PS In my project, tagging is carried out by the name of entities (database tables). A check is made that this resource (record) belongs to a specific table. True, I’ll still be thinking about the tagging structure to reduce scatter.

  • You have a little misunderstood the question. I know how to work with Meamcache. I need to do as if Meamcache. - shushlyakov
  • @ Vadim Shushlyakov, and what prevents memesh to take, and modify it to fit your needs? - nolka