Nick O'Leary
c1d50e82e1
Fix race condition in non-cache lfs context
...
Fixes #1888
2018-09-17 10:31:00 +01:00
Nick O'Leary
9777af7cb5
LocalFileSystem Context: Remove extra flush code
2018-09-16 22:04:09 +01:00
Hiroki Uchikawa
fd86035865
Prevent race condition ( #1889 )
...
* Make pending Flag to be deleted after write process complete.
* Prevent executing write process until the previous process is completed
* Fix to prevent file write race condition when closing file context
* Make flushing rerun if pendingWrites was added
2018-09-16 21:15:23 +01:00
Nick O'Leary
fc0cf1ff51
Handle context.get with multiple levels of unknown key
...
Fixes #1883
2018-09-09 23:47:31 +01:00
Nick O'Leary
28b311b7ed
Improve error reporting from context plugin loading
2018-08-16 14:36:11 +01:00
Nick O'Leary
d132d63c1d
Handle windows paths for context storage
2018-08-15 15:31:42 +01:00
Nick O'Leary
ef8b936069
Handle persisting objects with circular refs in context
2018-08-15 10:19:37 +01:00
Nick O'Leary
ff627fd128
Fix localfilesystem clean handling
2018-08-09 14:39:20 +01:00
Nick O'Leary
17e6940a42
Update context plugins to use get/setObjectProperty
2018-07-25 09:59:26 +01:00
Nick O'Leary
9f81a591e1
Move multiple-get/set logic into individual context stores
2018-07-23 13:28:06 +01:00
nakanishi
39b751acf5
Add test cases for localfilesystem context
2018-07-20 11:23:37 +09:00
HirokiUchikawa
9111adf15f
Use ensureDir()
insted of mkdir()
...
and add test case
2018-07-12 18:20:47 +09:00
Hiroki Uchikawa
1bf4addf63
Fix an error when initializing the cache ( #1788 )
...
* Fix a error when initializing the cache
* Make context directory if it is not there in initialization
2018-07-10 12:41:16 +01:00
Nick O'Leary
a1251371d7
Avoid unnecessary re-reading of file context when caching is enabled
2018-07-03 11:29:45 +01:00
Nick O'Leary
43d7c8d48c
Add caching to localfilesystem context
2018-07-02 22:32:20 +01:00
HirokiUchikawa
f2fa26fb07
Use the callback instead of Promise in context API
...
and remove unnecessary functions
2018-06-22 17:11:54 +09:00
HirokiUchikawa
e6411d11b1
Remove unnecessary context storage APIs
...
and rename context storage APIs
2018-06-20 20:00:39 +09:00
HirokiUchikawa
dd81d947fc
Use native Promise instead of when.js
2018-06-20 19:50:55 +09:00
HirokiUchikawa
c4eae3f130
Fix file extension
2018-06-20 19:42:08 +09:00
HirokiUchikawa
ed1d34e678
Use fs-extra instead of node-json-db
2018-06-20 19:42:06 +09:00
Hiroki Uchikawa
7aced85a31
Use Array.indexOf() instead of Array.includes()
2018-06-20 19:42:04 +09:00
HirokiUchikawa
6e34f0697c
Allow .get/set/keys to return asynchronous results
2018-06-20 19:42:02 +09:00
HirokiUchikawa
a835f9f0cb
Fix ENOENT error in LocalFileSystem.clean()
2018-06-20 19:42:01 +09:00
HirokiUchikawa
c48c74f173
Delete unused variables
2018-06-20 19:42:00 +09:00
HirokiUchikawa
f262348497
Add clean to context plugin
...
and don't delete local context unless the context is deleted by a user
2018-06-20 19:41:59 +09:00
HirokiUchikawa
7185bcd51f
Add open/close API for context
2018-06-20 19:41:58 +09:00
HirokiUchikawa
28d05e2449
Allow multiple instances of a given storage module to exist
2018-06-20 19:41:57 +09:00
Hiroki Uchikawa
7fafa21a1b
Change the order of arguments
2018-06-20 19:41:56 +09:00
Hiroki Uchikawa
e33ec0cf50
update external context
...
- Implement `delete` function
- Swap default easily
- Change memory context as a plugin
- Update localfilesystem plugin
- Change file/folder structure
2018-06-20 19:40:26 +09:00
Hiroki Uchikawa
e66b381070
add external context files
2018-06-20 19:40:25 +09:00