Kristaps Grinbergs
3453f681c6
* setting Swift4.2 version in appropriate places
...
* fixing tests for Swift 4.2
* Xcode 10 parallel testing
* code sanitasion
* remove comments from Package.swift
2018-09-23 13:00:34 +03:00
Vadym Markov
7257dc6a21
Handle file extensions
2018-08-13 10:29:06 +02:00
Vadym Markov
c6c7f7b690
Add filePath to Entry
2018-08-13 10:10:59 +02:00
Vadym Markov
468a780b8c
Fix typos in README and documentation
2018-08-08 11:04:21 +02:00
Vadym Markov
0f8860f74d
Document observation protocols
2018-08-07 16:27:15 +02:00
Vadym Markov
1c0e873519
Fix typos in README and remove commented code
2018-08-07 16:18:32 +02:00
Vadym Markov
e4fd35749c
Test observations in HybridStorage and Storage
2018-08-07 15:18:35 +02:00
Vadym Markov
0bbdf947a8
Improve toke-based API with observers
2018-08-07 13:57:28 +02:00
Vadym Markov
a05dfb79a1
Refactor observations
2018-08-07 13:22:00 +02:00
Vadym Markov
2a18a462ae
Add observation registry
2018-08-06 16:44:08 +02:00
Vadym Markov
a7e40e734f
Notify key observers when needed
2018-08-06 12:54:08 +02:00
Vadym Markov
5e53be997d
Add key observation registry
2018-08-06 09:57:54 +02:00
Vadym Markov
364d2ecc04
Use associated enum for the key information
2018-08-03 15:21:56 +02:00
Vadym Markov
b77619f164
Use strongSelf in closure
2018-08-03 15:03:15 +02:00
Vadym Markov
7c003de4fe
Rename functions in StorageObservationRegistry
2018-08-03 14:59:58 +02:00
Vadym Markov
cb85b99edc
Add unit tests for ObservationToken and StorageObservationRegistry
2018-08-03 14:03:10 +02:00
Vadym Markov
0ad8bbe0f1
Add unit tests for Storage and HybridStorage
2018-08-03 13:42:11 +02:00
Vadym Markov
cf8173939a
Use StoreObservable protocol with protocol extension
2018-08-03 10:36:59 +02:00
Vadym Markov
a73bec5a0f
Implement observations in HybridStorage
2018-08-02 16:24:01 +02:00
Vadym Markov
e42cbc06ff
Implement store observations
2018-08-02 16:02:46 +02:00
Khoa Pham
e736b153f0
Remove try!
2018-06-13 14:23:59 +02:00
Khoa Pham
a4b6058c2b
Use cache directory
2018-06-13 14:18:40 +02:00
Khoa Pham
08ee51c899
Default to document directory
2018-06-13 13:29:26 +02:00
Khoa Pham
40a8b3007d
Rename from support to transform
2018-06-13 13:21:37 +02:00
Khoa Pham
02245ec60d
Update SyncStorageTests
2018-06-13 12:46:21 +02:00
Khoa Pham
e96da4609a
Expose all Storage classes
2018-06-13 12:43:52 +02:00
Khoa Pham
efdf1c73d1
Rename to StorageAware
2018-06-13 12:35:48 +02:00
Khoa Pham
fb823e9f1f
Add TransformerFactory
2018-06-13 12:31:33 +02:00
Khoa Pham
d38c941084
Readd totalCostLimit
2018-06-13 12:29:03 +02:00
Khoa Pham
6e468a110d
Rename to Storage
2018-06-13 12:15:16 +02:00
Khoa Pham
4346ba490d
Remove old Storage files
2018-06-13 12:13:50 +02:00
Khoa Pham
9cbd6bdbdc
Use TypeWrapper to work with primitive types
2018-06-13 12:12:08 +02:00
Khoa Pham
74f9794d22
Fix type annotation
2018-06-13 12:10:55 +02:00
Khoa Pham
12abe4f48c
Add Transformer for Codable and for Data
2018-06-13 11:11:35 +02:00
Khoa Pham
56c4483a11
Add factory methods to Transformer
2018-06-13 11:02:54 +02:00
Khoa Pham
d3e9a71a39
Expose all public
2018-06-13 10:51:45 +02:00
Khoa Pham
760d267b81
Add AsyncStorage2
2018-06-13 10:41:00 +02:00
Khoa Pham
4c48dfb084
Add AsyncStorage2
2018-06-13 10:36:20 +02:00
Khoa Pham
aa664e1934
Add Storage2
2018-06-13 10:30:42 +02:00
Khoa Pham
187035bf72
Add support on SyncStorage2
2018-06-13 10:15:05 +02:00
Khoa Pham
7e9ffad42a
Add function to support types
2018-06-13 10:05:10 +02:00
Khoa Pham
0b8f5c340e
Add HybridStorage2
2018-06-13 09:52:03 +02:00
Khoa Pham
beedc302f2
Add generic Storage
2018-06-13 09:48:26 +02:00
Michele Gruppioni
b2bec8b198
Passing the meta to Entry
2018-06-07 09:44:39 +02:00
yingtao
308bb89e43
Removed totalCostLimit from MemoryConfig
2018-05-04 10:08:36 -04:00
Khoa Pham
71897cea7e
Remove trailing whitespace
2018-04-04 10:06:21 +02:00
Lug4rd
096014c42c
Extend storage aware protocol
...
Added check function for expired object by key
2018-02-12 01:34:20 +03:00
Lug4rd
ed4f5ca579
Fix "expiry" values
...
While using .seconds case an object never be with expired date and expiry values will be different for memory and disk storages when coped to memory for hybrid storage.
2018-02-12 01:29:35 +03:00
Stuart Tett
b48443e2e1
Fix coercion errors
2017-11-28 12:09:44 -08:00
Stuart Tett
8730e3fefa
Can’t use FileProtectionType on linux
2017-11-28 11:12:59 -08:00