Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 1.2 KB

ngxshareddictflush_all.md

File metadata and controls

25 lines (14 loc) · 1.2 KB

ngx.shared.DICT.flush_all

语法: ngx.shared.DICT:flush_all()

环境: init_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*

清空字典中的所有内容。这个方法并不实际释放字典占用的内存块,而是标记所有存在的内容为已过期。

这个功能最早出现在 v0.5.0rc17 版本中。

更多功能请参考 ngx.shared.DICT.flush_expiredngx.shared.DICT

English Source

syntax: ngx.shared.DICT:flush_all()

context: init_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*

Flushes out all the items in the dictionary. This method does not actuall free up all the memory blocks in the dictionary but just marks all the existing items as expired.

This feature was first introduced in the v0.5.0rc17 release.

See also ngx.shared.DICT.flush_expired and ngx.shared.DICT.

返回目录