collections-cache 0.1.9__py3-none-any.whl → 0.2.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -137,3 +137,11 @@ class Collection_Cache:
137
137
  conn.execute("PRAGMA journal_mode = WAL;")
138
138
  conn.execute("PRAGMA synchronous = NORMAL;")
139
139
  conn.execute("PRAGMA wal_autocheckpoint = 1000;")
140
+
141
+ def keys(self):
142
+ """Returns all stored keys"""
143
+ return list(self.keys_databases.keys())
144
+
145
+ def export_to_json(self):
146
+ """Test"""
147
+ pass
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: collections-cache
3
- Version: 0.1.9
4
- Summary: Collection Cache is a Python package for managing data collections across multiple SQLite databases. It allows efficient storage, retrieval, and updating of key-value pairs, supporting various data types serialized with pickle. The package uses parallel processing for fast access and manipulation of large collections.
3
+ Version: 0.2.0
4
+ Summary: collections-cache is a Python package for managing data collections across multiple SQLite databases. It allows efficient storage, retrieval, and updating of key-value pairs, supporting various data types serialized with pickle. The package uses parallel processing for fast access and manipulation of large collections.
5
5
  License: MIT
6
6
  Author: Luiz-Trindade
7
7
  Author-email: luiz.gabriel.m.trindade@gmail.com
@@ -66,6 +66,7 @@ print(products) # Output: ['apple', 'orange', 'onion']
66
66
  - **`set_key(key, value)`**: Stores a key-value pair in the cache. If the key already exists, its value is updated.
67
67
  - **`get_key(key)`**: Retrieves the value associated with a key.
68
68
  - **`delete_key(key)`**: Removes an existing key from the cache.
69
+ - **`keys`***: Returns all stored keys.
69
70
 
70
71
  ## Development
71
72
 
@@ -0,0 +1,6 @@
1
+ collections_cache/__init__.py,sha256=uUp8lhp-HnZRumnU_8MT6qVq95t0pOzn7oLW7ARbnvc,48
2
+ collections_cache/collections_cache.py,sha256=c9RRmaObGEBu63BdxL3e6nYrtZh6SUsTpBUWIeWRgwk,5518
3
+ collections_cache-0.2.0.dist-info/LICENSE,sha256=RAIL-FmXSiNRgyiVlfhm2SvVI4XDVsN0jDt9207SJ8o,1168
4
+ collections_cache-0.2.0.dist-info/METADATA,sha256=lihDcWlsHWqD-oQMYZn1Cq7TShlBEEhRakL3s2B_OHE,3276
5
+ collections_cache-0.2.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
6
+ collections_cache-0.2.0.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- collections_cache/__init__.py,sha256=uUp8lhp-HnZRumnU_8MT6qVq95t0pOzn7oLW7ARbnvc,48
2
- collections_cache/collections_cache.py,sha256=qwK6heBRGqMy6lVfAalpXLUmuooeVCIePgvjsOOWSfg,5348
3
- collections_cache-0.1.9.dist-info/LICENSE,sha256=RAIL-FmXSiNRgyiVlfhm2SvVI4XDVsN0jDt9207SJ8o,1168
4
- collections_cache-0.1.9.dist-info/METADATA,sha256=9zEnDjTiUCrhpe2K_PhMY53fXNRMkFsIYqQbfk-AM4M,3235
5
- collections_cache-0.1.9.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
6
- collections_cache-0.1.9.dist-info/RECORD,,