BazaarRealmAPI/test_data
Tyler Hallada 519fcb4c5a 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 00:25:04 -04:00
..
interior_ref_lists.json Add auth to delete endpoints 2020-07-30 01:09:29 -04:00
owner2.json Add auth to delete endpoints 2020-07-30 01:09:29 -04:00
owner.json Add test JSON payloads to repo 2020-07-22 23:30:20 -04:00
shop2.json Add caching with LRU cache under mutex 2020-08-01 00:25:04 -04:00
shop.json interior_refs -> interior_ref_lists, finish insert 2020-07-23 00:13:31 -04:00