You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Design and implement an API and framework for simple key-value storage backends. This includes configuration parsing (see #855) and new statistics counters. Only needs to support one secondary backend for now.
I did not find any hints on this topic:
Will the secondary storage propagate into the primary and/or will the primary eventually drop its content into the secondary?
Will the secondary storage propagate into the primary and/or will the primary eventually drop its content into the secondary?
My current plan looks something like this:
Primary storage hit/miss
Secondary storage hit/miss
What happens
miss
miss
Compile, write to primary[1], write to secondary[2]
miss
hit
Read from secondary, write to primary[1][3]
hit
-
Read from primary, don't write to secondary[4]
[1] Unless primary storage is read-only (future config option: read_only_primary/CCACHE_READONLY_PRIMARY).
[2] Unless secondary storage is read-only (|read-only or |read-only=true appended to the storage URL).
[3] Unless secondary storage is marked to not share results. The use case for this is if you have a secondary storage that is so fast that it's of no use to also populate the primary storage. I haven't come up with a good name for this yet, though. The best I got so far is |share-hits=false appended to the storage URL. Other suggestions are welcome.
[4] Unless primary storage is set to share its hits (future config option: share_hits/CCACHE_SHARE_HITS).
I haven't come up with a good name for this yet, though. The best I got so far is |share-hits=false appended to the storage URL. Other suggestions are welcome.
The old name for this feature was memcached_only, which doesn't really help with picking the new name. ("share-hits" is ok)
Activity
[-]Storage backend: API and framework[/-][+]Storage backends: API and framework[/+]jrosdahl commentedon Jun 27, 2021
Bezalja commentedon Jul 6, 2021
I did not find any hints on this topic:
Will the secondary storage propagate into the primary and/or will the primary eventually drop its content into the secondary?
jrosdahl commentedon Jul 7, 2021
My current plan looks something like this:
read_only_primary/CCACHE_READONLY_PRIMARY).|read-onlyor|read-only=trueappended to the storage URL).|share-hits=falseappended to the storage URL. Other suggestions are welcome.share_hits/CCACHE_SHARE_HITS).Does this sound reasonable?
afbjorklund commentedon Jul 8, 2021
The old name for this feature was
memcached_only, which doesn't really help with picking the new name. ("share-hits" is ok)Bezalja commentedon Jul 20, 2021
That's amazing! Thank you so much.
'share_hits' is a very reasonable name (an alternative might be
populate=[primary|secondary|other|both|none])