This website requires JavaScript.
Explore
Help
Sign In
thallada
/
BazaarRealmAPI
Watch
1
Star
0
Fork
0
You've already forked BazaarRealmAPI
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
e44aa9ddfc
BazaarRealmAPI
/
test_data
/
shop2.json
5 lines
60 B
JSON
Raw
Normal View
History
Unescape
Escape
Add caching with LRU cache under mutex Caches responses of each GET handler in a separate capacity-limited cache (as a custom clone-able `CachedResponse` struct). Subsequent requests will build a `Response` from the cached bytes instead of re-querying the database and re-serializing the JSON. This greatly speeds up the list endpoints and `get_interior_ref_list`. Also caches the api-key-to-id mapping for `Owner`s in order to speed up frequent authentications. Each create handler clears the entire list response cache. Each delete handler also clears the entire list response cache and deletes the cached response for that key. Deleting an owner also deletes their entry in the `owner_ids_by_api_key` cache.
2020-08-01 04:25:04 +00:00
{
Add authentication to more handlers
2020-08-01 06:18:31 +00:00
"name"
:
"Test Shop 2"
,
Update schema, add status endpoint
2020-09-07 20:51:01 +00:00
"description"
:
"for testing"
Add caching with LRU cache under mutex Caches responses of each GET handler in a separate capacity-limited cache (as a custom clone-able `CachedResponse` struct). Subsequent requests will build a `Response` from the cached bytes instead of re-querying the database and re-serializing the JSON. This greatly speeds up the list endpoints and `get_interior_ref_list`. Also caches the api-key-to-id mapping for `Owner`s in order to speed up frequent authentications. Each create handler clears the entire list response cache. Each delete handler also clears the entire list response cache and deletes the cached response for that key. Deleting an owner also deletes their entry in the `owner_ids_by_api_key` cache.
2020-08-01 04:25:04 +00:00
}
Reference in New Issue
Copy Permalink