Is there documentation on which calls
# spicedb
j
Is there documentation on which calls are cached and which are not. It seems like LookupResources and LookupSubjects are not. Is it only CheckPermission that is cached?
v
I'm not sure there are docs consolidated around this.
--explain
should give you this information, but it's also taxing to run the calls like that, plus we have this bug in Serverless that prevents using it.
CheckPermissions
will decompose every dispatch into a subproblem. You can see each "element" in your
permission
as a dispatch (this is a simplification). Each dispatch will be cached on the client dispatching, and the result will also be cached on the server that received the dispatch.
LookupResources
/
LookupSubjects
work differently, @Joey will be able to give you a better explanation that I do, specially given the implementation has been changed recently or is still in flux
j
all three calls are cached