compas-dev / compas-dev/compas_cloud

feature_request: option to use named keys for caching

Aperta
#10 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
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_:_
![image](https://user-images.githubusercontent.com/9421670/97928163-b70ec400-1d66-11eb-8c77-d4dde998bc34.png)

_(2) Inside the Proxy class...__
_When a user supply a datakey, this is sent along with the data to the server_
![image](https://user-images.githubusercontent.com/9421670/97928374-33a1a280-1d67-11eb-9e9b-e25539e2af35.png)

_(3) Correspondingly, the ServerProtocol class stores any supplied datakey to the property / mapper described in (1)_
![image](https://user-images.githubusercontent.com/9421670/97928451-5df36000-1d67-11eb-9001-4a75c3685d19.png)

_(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)_
![image](https://user-images.githubusercontent.com/9421670/97928507-7b282e80-1d67-11eb-8fac-4dbde2313d02.png)

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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.