Manipulating the Replacement Policy in memcached

93 views
Skip to first unread message

Saeid

unread,
Aug 1, 2013, 4:52:51 AM8/1/13
to memc...@googlegroups.com
All Dears,

I am new in memchached and I need to manipulate its default replacement policy (LRU). For example, I need to run memcached under Random or FIFO or LFU.
Where should I start working (in which file and/or function).

Best Regards,
Saeid


baotiao

unread,
Aug 1, 2013, 7:10:58 AM8/1/13
to memc...@googlegroups.com
Hi Saeid.
You can start from the items.c. the do_item_alloc function contain the main code of policy(LRU).
--
 
---
You received this message because you are subscribed to the Google Groups "memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email to memcached+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Saeid Montazeri

unread,
Aug 2, 2013, 1:07:31 AM8/2/13
to memc...@googlegroups.com
Dear Baotiao,

Thanks for the reply. Is there any document related to the source code of the memcached?

Moreover, does anybody know how the processing of the below tasks start (function name):
1. When a key should be searched in the cache.
2. when a key should be inserted into cache.
3. when an update/delete should be done for a key.

Best Regards,
Saeid

--
 
---
You received this message because you are subscribed to a topic in the Google Groups "memcached" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/memcached/F8NzkJ8WmC4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to memcached+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages