Kong.Cache Error (db-less)

Hi,

Does anyone know if it’s possible to use kong.cache on DB-less?

I’m trying to improve my plugins with in-memory cache with the PDK kong.cache but I get this error:

attempt to index field ‘cache’ (a nil value)

Thanks

Found it

kong.cache is only available after the :access handler. Im trying to do this on the ctor of the plugin.