summaryrefslogtreecommitdiff
path: root/meta/3rd/OpenResty/library/resty/lrucache/pureffi.lua
diff options
context:
space:
mode:
authorcarsakiller <carsakiller@gmail.com>2023-10-27 20:42:05 -0400
committercarsakiller <carsakiller@gmail.com>2023-10-27 20:42:05 -0400
commitd2f198493b8d3de1c98c94db17a17e378925792e (patch)
treef28e3322d42f1d493c7be8c910b44047c02a08f7 /meta/3rd/OpenResty/library/resty/lrucache/pureffi.lua
parent178d6258167de8a305284e65c413ce6f4df5b5e8 (diff)
downloadlua-language-server-d2f198493b8d3de1c98c94db17a17e378925792e.zip
refactor: replace openresty with LuaCATS submodule
Diffstat (limited to 'meta/3rd/OpenResty/library/resty/lrucache/pureffi.lua')
m---------meta/3rd/OpenResty0
-rw-r--r--meta/3rd/OpenResty/library/resty/lrucache/pureffi.lua18
2 files changed, 0 insertions, 18 deletions
diff --git a/meta/3rd/OpenResty b/meta/3rd/OpenResty
new file mode 160000
+Subproject 3bec36f0f645bb38b3c8208990d5c36feb66ce3
diff --git a/meta/3rd/OpenResty/library/resty/lrucache/pureffi.lua b/meta/3rd/OpenResty/library/resty/lrucache/pureffi.lua
deleted file mode 100644
index af5e9821..00000000
--- a/meta/3rd/OpenResty/library/resty/lrucache/pureffi.lua
+++ /dev/null
@@ -1,18 +0,0 @@
----@meta
-
----@class resty.lrucache.pureffi : resty.lrucache
-local lrucache_pureffi = {
- _VERSION = "0.11",
-}
-
---- Creates a new cache instance.
----
---- Upon failure, returns nil and a string describing the error.
----
----@param max_items number specifies the maximal number of items this cache can hold.
----@param load_factor? number designates the "load factor" of the FFI-based hash-table used internally by `resty.lrucache.pureffi`; the default value is 0.5 (i.e. 50%); if the load factor is specified, it will be clamped to the range of [0.1, 1] (i.e. if load factor is greater than 1, it will be saturated to 1; likewise, if load-factor is smaller than 0.1, it will be clamped to 0.1).
----@return resty.lrucache.pureffi? cache
----@return string? error
-function lrucache_pureffi.new(max_items, load_factor) end
-
-return lrucache_pureffi \ No newline at end of file