massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / google-cloud-ndb / google / cloud / ndb / _cache.pyi
1 from typing import Any
2
3 from google.cloud.ndb import tasklets as tasklets
4
5 class ContextCache:
6     def get_and_validate(self, key): ...
7
8 class _GlobalCacheBatch:
9     def full(self): ...
10     def idle_callback(self) -> None: ...
11     def done_callback(self, cache_call) -> None: ...
12     def make_call(self) -> None: ...
13     def future_info(self, key) -> None: ...
14
15 global_get: Any
16
17 class _GlobalCacheGetBatch(_GlobalCacheBatch):
18     todo: Any
19     keys: Any
20     def __init__(self, ignore_options) -> None: ...
21     def add(self, key): ...
22     def done_callback(self, cache_call) -> None: ...
23     def make_call(self): ...
24     def future_info(self, key): ...
25
26 def global_set(key, value, expires: Any | None = ..., read: bool = ...): ...
27
28 class _GlobalCacheSetBatch(_GlobalCacheBatch):
29     expires: Any
30     todo: object
31     futures: object
32     def __init__(self, options) -> None: ...
33     def done_callback(self, cache_call) -> None: ...
34     def add(self, key, value): ...
35     def make_call(self): ...
36     def future_info(self, key, value): ...
37
38 class _GlobalCacheSetIfNotExistsBatch(_GlobalCacheSetBatch):
39     def add(self, key, value): ...
40     def make_call(self): ...
41     def future_info(self, key, value): ...
42
43 global_delete: Any
44
45 class _GlobalCacheDeleteBatch(_GlobalCacheBatch):
46     keys: Any
47     futures: Any
48     def __init__(self, ignore_options) -> None: ...
49     def add(self, key): ...
50     def make_call(self): ...
51     def future_info(self, key): ...
52
53 global_watch: Any
54
55 class _GlobalCacheWatchBatch(_GlobalCacheDeleteBatch):
56     def make_call(self): ...
57     def future_info(self, key): ...
58
59 def global_unwatch(key): ...
60
61 class _GlobalCacheUnwatchBatch(_GlobalCacheDeleteBatch):
62     def make_call(self): ...
63     def future_info(self, key): ...
64
65 global_compare_and_swap: Any
66
67 class _GlobalCacheCompareAndSwapBatch(_GlobalCacheSetBatch):
68     def make_call(self): ...
69     def future_info(self, key, value): ...
70
71 def is_locked_value(value): ...
72 def global_cache_key(key): ...