Comments (4)
@bwbeach, do you think all of them can be cached? I think those will change only in corner case, so if a change is committed to a database, parallel processes could refresh the information on their own, right?
from b2_command_line_tool.
Yes. I think they can all be cached. The minimum part size never changes. And we have ways to refresh the rest when they are stale.
In general, I prefer delegation to mixins and inheritance. But I'm open to a different approach.
from b2_command_line_tool.
The idea here is to provide an ability for classes which implement AccountInfo
interface to have an in-memory caching layer, which will handle some requests without touching underlying storage, so that it would avoid initialization and reading from an sqlite3 database so frequently.
from b2_command_line_tool.
We have InMemoryAccountInfo
, AuthInfoCache
and InMemoryCache
for years now.
from b2_command_line_tool.
Related Issues (20)
- Install from source documentation section should be updated to PDM
- Prevent writing b2 file information to stdout when using download-file HOT 2
- [Question or Feature Request] Excluding Symbolic Links HOT 2
- Couldnt use --quiet to suppress the output from b2 account authorize HOT 3
- s3endpoint in `b2 account get` sometimes returns an empty value HOT 5
- Please make sync more robust when encountering inaccessible directories or files HOT 6
- sync seems to ignore --exclude-dir-regex
- `-qq` flag, a REALLY quiet mode
- Delete a list of files HOT 6
- Error when resuming upload HOT 2
- switch to stable pypy version after new pypy is released HOT 2
- b2 ls --json destroys output structure with informational message HOT 1
- `Using https://api.backblazeb2.com` output to stderr causing problems for automation that only expects errors and warnings on stderr
- pip install breaks with setuptools 69.0.0 HOT 3
- b2 should respect the spec's default fallback for `XDG_CONFIG_HOME` HOT 4
- Feature request: Support transparent compression HOT 1
- error: the following arguments are required: command HOT 5
- Issue with b2 sync :: KeyError: 'content-length' HOT 11
- Package `b2` for Alpine Linux HOT 5
- Linux.Xor.DDoS false-positive from chkrootkit due PyInstaller use
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from b2_command_line_tool.