DiskCache is an Apache2 licensed disk and file backed cache library, written in pure-Python, and compatible with Django.
Questions tagged [diskcache]
46 questions
20
votes
4 answers
How to cache package manager downloads for docker builds?
If I run composer install from my host, I hit my local composer cache:
- Installing deft/iso3166-utility (1.0.0)
Loading from cache
Yet when building a container having in its Dockerfile:
RUN composer install -n -o --no-dev
I download all…

k0pernikus
- 60,309
- 67
- 216
- 347
17
votes
3 answers
Volley out of memory error, weird allocation attempt
Sometimes randomly Volley crashes my app upon startup, it crashes in the application class and a user would not be able to open the app again until they go into settings and clear app data
java.lang.OutOfMemoryError
at…

CQM
- 42,592
- 75
- 224
- 366
10
votes
3 answers
How to revert bcache device to regular device
I have a 20 gb SSD device on my laptop that i decided to try bcache on. It seemed to work, but for some time now, I've been getting an error on boot:
error on 0f3bbb55-6839-4ed6-8127-7976a969f726: corrupted btree at bucket 17571, block 483, 61 keys,…

Greg Michalec
- 849
- 3
- 10
- 17
4
votes
0 answers
Do containers use the same OS disk cache?
When running multiple containers on single server, does each container have its own OS disk cache? Or is the OS disk cache shared between all containers?
Is the answer different when there are multiple physical disks, and any one disk is only used…

rwfbc
- 900
- 1
- 10
- 22
4
votes
1 answer
What is DiskCache in android, is it different from Physical harddisk space?
Hi iam using a library called Picasso in android for displaying the images in a Recycer view, its saying that it will cace the images in diskcache, what is diskcache? can we see what files are stored in it programmatically?

Murali
- 165
- 1
- 14
4
votes
1 answer
How is Alamofireimage saving the image to disk cache?
I am trying to find out if it's possible to force an image to be saved on disk with Alamofireimage. Looking at the source code, I cannot locate where it is actually saving the image to the disk. Does anyone know?

dickyj
- 1,830
- 1
- 24
- 41
3
votes
1 answer
How disk cache in OrientDB is separated by read and write cache (percentages)
I found out from the Docs that, given 100% usage of disk cache by orientdb, it uses a maximum size of 70% for read cache and 30% for write cache…

michelepatrassi
- 2,016
- 18
- 32
2
votes
0 answers
Where should my Java desktop app cache its downloaded assets?
I have a Java desktop application that downloads tens to hundreds of MB of image and music data as part of its normal operation. It maintains a disk cache of this data. If part or all of the cache is removed, the app will notice and re-download…

Stevey
- 2,822
- 1
- 23
- 30
1
vote
1 answer
mypy showing error "Untyped decorator makes function untyped" when using diskcache.Cache.memoize decorator on a typed function
I have a function that returns a list of dictionaries I want to cache using diskcache.Cache.memoize. However, when I run mypy type checks I get an Untyped decorator makes function "get_local_network_connections" untyped error.
I'm not sure how to…

Matthew Sparks
- 11
- 1
1
vote
0 answers
Cache large numpy array (or other arrays) into disk to save RAM memory
I have a algorithm, where I aggregate several large numpy arrays (or other arrays, like tensorflow or pytorch) from several processes into one process. The problem is that those arrays are quite large and often use a lot of RAM memory.
I would like…

Daniel Wiczew
- 165
- 9
1
vote
1 answer
set blob disk cache on microsoft azure storage
i tried to set cacheControl value in azure CDN rules engine.
request header is added with cacheControl value (cache-Control : max-age 3000), but when i reload my page, blob is not caching by disk cache and download blob everytime.
is there have any…

J U
- 21
- 1
1
vote
2 answers
How to exclude parameters when caching function calls with DiskCache and memoize?
I am using Python's DiskCache and the memoize decorator to cache function calls to a database of static data.
from diskcache import Cache
cache = Cache("database_cache)
@cache.memoize()
def fetch_document(row_id: int, user: str, password: str):
…

Leevi L
- 1,538
- 2
- 13
- 28
1
vote
1 answer
How to inform user that cache is being used?
I am using the python library diskcache and its decorater @cache.memoize to cache calls to my couchdb database. Works fine. However, I would like to print to the user whether the data is returned from the database or from the cache.
I don't even…

Leevi L
- 1,538
- 2
- 13
- 28
1
vote
1 answer
How to tell web-browser client to always check for latest version of website code
I have web-site build with angular that is hosted on cloudflare. When I push new version of application on server, I see from dev computer that browser uses old (from disk-cache) version of files. Because it uses previous versions of index.html,…

usernumber124153
- 113
- 1
- 8
1
vote
2 answers
Is it safe for two threads to write identical content to the same file?
Suppose a program has a caching mechanism where, at the end of some specific calculation, the program writes the output of that calculation to the disk to avoid re-computing it later, when the program is re-ran. It does so for a large number of…

Corentin Schreiber
- 123
- 2
- 10