chaoslawful/lua-nginx-module — pull request #146 by bakins (2012-08-04 15:24:56+00:00)
Title: flush_expired

This adds flush_expired to the shdict. This removes all expired items from a shdict.

This takes an optional argument that limits the number of items to flush.

Returns the number of items removed

This is useful if set/add/replace/etc had to forcibly evict something, then you can flush some or all expired items.