]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: lru: new function to delete <nb> least recently used keys
authorBaptiste Assmann <bedis9@gmail.com>
Thu, 7 Jan 2016 01:28:50 +0000 (02:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 11 Jan 2016 06:31:35 +0000 (07:31 +0100)
commit22c4ed69372d677061fb1f400311c57a8d4ce2cf
tree6ef1a1604e99806768f0181263cbc0753befbd61
parentb631c291c9211a1f0446d4b7fd29a3ebaa154c96
MINOR: lru: new function to delete <nb> least recently used keys

Introduction of a new function in the LRU cache source file.
Purpose of this function is to be used to delete a number of entries in
the cache. 'number' is defined by the caller and the key removed are
taken at the tail of the tree
include/import/lru.h
src/lru.c