compas-dev / compas-dev/compas_cloud
feature_request: option to use named keys for caching
- Lingua principale
- Python
- Stelle
- 6
- Fork
- 2
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Consider allowing user to supplement their own named keys when caching object... in order to facilitate more intuitive retrieval of cached objects. This involves making the following changes:
_(1) Create property in ServerProtocol class to store the map between datakey and id_:_

_(2) Inside the Proxy class...__
_When a user supply a datakey, this is sent along with the data to the server_

_(3) Correspondingly, the ServerProtocol class stores any supplied datakey to the property / mapper described in (1)_

_(4) In the Get method of the ServerProtocol class, allow the datakey to be used for retrieving cached object... (If the key is not an ID, the method will search for stored keys)_

Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia individuando le classi ServerProtocol e Proxy, quindi traccia il modo in cui datakey e gli ID vengono inviati, memorizzati e gestiti da ServerProtocol.Get. Implementa il comportamento richiesto di mapping e ricerca, in modo che le chiavi denominate fornite recuperino gli oggetti memorizzati nella cache, mentre il recupero esistente tramite ID continui a funzionare. Conferma il comportamento con i test o gli esempi pertinenti del progetto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- api, backend
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100