Cache time for Sever Actions Library

Hi,
Server Actions API allow to set “Cache Time”

But Server Actions Library not.

How to set cache time for a Library?
For example, One case is when I use the Library option to filter user permissions by rol, so, this library check with a query into roles table. This table is static, and I would like to keep it in server cache to not generate each time a query into DB for this table.

Thanks

If you’re using Redis, it will cache it by default

@Alexander_Paladines, did you figure this out? I came for the same question. It would be nice if Library actions can be cached.

Honestly I don’t remember what I ended doing.