3 ms·
I would probably make an HTTP interceptor to remove the elements from the cache on non-GET methods. The same could probably be done on socket events if you sync
by Doublon 12y ago
I would probably make an HTTP interceptor to remove the elements from the cache on non-GET methods. The same could probably be done on socket events if you sync your clients with socket.io or something alike.
e.g.: PUT /users/123 => delete from cache the user "123"
- x86dev 12y agoThis is what I did with angular-cache.