lua-resty-lrucache vs lua_shared_dict

25 views
Skip to first unread message

Kshitij Joshi

unread,
Apr 16, 2021, 7:45:07 PMApr 16
to openresty-en
Hi!

and

Both of them work fine for my use case where I want to cache a very small amount of data for few minutes before expiring & fetching the data again.

Both work perfectly for me with the same performance.

I'm trying to understand the difference and pros & cons of using either of them.

Any help would be appreciated.

ecc256

unread,
Apr 16, 2021, 8:32:00 PMApr 16
to openresty-en
You forgot to mention the best one (IMO!):
https://github.com/thibaultcha/lua-resty-mlcache

Kshitij Joshi

unread,
Apr 16, 2021, 8:42:54 PMApr 16
to openresty-en

Yup. That one as well!

ecc256

unread,
Apr 16, 2021, 8:44:46 PMApr 16
to openresty-en
It has an "Illustration" with your question answer! ;)

Kshitij Joshi

unread,
Apr 16, 2021, 8:59:18 PMApr 16
to openre...@googlegroups.com
Ah I see.

Thanks a lot. This is really helpful!

--
You received this message because you are subscribed to a topic in the Google Groups "openresty-en" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openresty-en/dAKgsFFF2sc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openresty-en...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openresty-en/5c87d886-b041-4eb4-acb7-0170f654e00an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages