Skip to content

Commit

Permalink
Update CACHING.md
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniy-scherbina authored Oct 17, 2023
1 parent 1f5e85e commit de33eb9
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions architecture/CACHING.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,17 @@ package provides two different middlewares:

## What requests are cached?

As of now we only cache requests which has `specified block number` in params
Requests without block number or with a magic word instead of

`{
"jsonrpc":"2.0",
"method":"eth_getBalance",
"params":[
"0x373CE80dd1e921506EC5603290AF444e60CeF61F",
"0x49BCF0"
],
"id":1
}`,

TODO...
As of now we cache requests which has `specific block number` in request, for example:
```json
{
"jsonrpc":"2.0",
"method":"eth_getBlockByNumber",
"params":["0x1b4", true],
"id":1
}
```

we don't cache requests without `specific block number` or requests which uses magic tags as a block number: "latest", "pending", "earliest", etc...

## Cache Invalidation

Expand Down

0 comments on commit de33eb9

Please sign in to comment.