-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchecklist.txt
49 lines (40 loc) · 1.9 KB
/
checklist.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
[✓] 1. Primary Functions
[✓] 1. set(): Set a value in cache after making the request specified
[✓] 2. get(): Get the current value stored for an API
[✓] 3. delete(): Delete a cached API based on the key entered
[✓] 4. update(): Update a cached API
[✓] 2. Secondary Functions
[✓] 1. setMulti(): Set multiple values in cache
[✓] 2. getMulti(): Get the current value of multiple keys from the cache
[✓] 3. deleteMulti(): Delete multiple cached APIs
[✓] 4. flush(): Delete all the data
[✓] 5. take(): Delete a cached API and return its last value
[✓] 6. has(): Check if the cache has a key
[✓] 7. keys(): Return all the keys currently stored in the cache
[✓] 3. Core Functions
[✓] 1. checkData()
[✓] 4. Internal Functions
[✓] 1. _checkResponseStatus(): Check the response status of a request made
[✓] 2. _generateError(): Generate Errors with messages based on error templates
[✓] 3. _processRequest(): Send the request and process the response
[✓] 5. Misc.
[✓] 1. Options for the module
[✓] 2. Better error templates
[✓] 3. TTL and Update loops
[✓] 4. More organised and uniform format of output for each function
whether it be valid response or errors
[✓] 5. Replace Promises
[✓] 6. Identifiers, Interfaces and Outputs
TO-DO
- Cache options(standardTTL & checkPeriod as of now, maybe forceString)
- Timed loop that checks each key to see if it needs to be updated
or has expired(has exceeded its ttl)
- Delete the key or update its value if the previous condition is met
- Update the interfaces, and indentifier names
- Uniform outputs and errors, update the error templates, make throwing
errors more efficient
- Update the documentation - consistent use of terminology, make it more
comprehensive
- comprehensive README and logo
- publish package
// setMulti