error cache-not-readonly
@cache только с @readonly.
What it means#
A response cache is only correct for calls that do not change state.
Example#
service Catalog {
@cache(ttl: 1s) // <- cache-not-readonly
rpc item(id: u64) -> i32
}error
cache-not-readonly
How to fix#
Mark the rpc @readonly, or drop @cache.