Commit graph

2 commits

Author SHA1 Message Date
Jason Rhinelander 752f19784b Add cache subkey; allow non-caching requests
The cache key allows having multiple caches that use the same endpoint
(for instance, rpc.get_service_nodes for all-SNs versus single SN).

Non-caching requests still use a cached value if present, but don't
store it in the cache if they have to make an actual request.
2020-08-31 13:05:17 -03:00
Jason Rhinelander fa9a17092c Move lmq connection & FutureJSON into lmq.py
Also delays creating the lmq instance until get_connection() is called,
which seems pretty much required if using multiple threads/processes as
we need each process to have its own connection.
2020-08-19 18:54:53 -03:00