3 ms·
What do you mean by micros? Anyway, yeah, it's just meant to be some sort of synchronous syntactic sugar on Redis. Edit: I think you meant macros. In that cas
by CapacitorSet 10y ago
What do you mean by micros?
Anyway, yeah, it's just meant to be some sort of synchronous syntactic sugar on Redis.
Edit: I think you meant macros. In that case, consider that it's not as simple as that, because a) the redis library is only asynchronous, and b) such an approach requires to implement wrappers for every function that writes to the object, eg. Array.proto.splice.
- binarymax 10y agoNice use of proxies and deasync. Will definitely make for cleaner code, and looks like a good simple pattern that can be implemented elsewhere.