Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

gps: source cache: adding multiCache #1138

Merged
merged 1 commit into from
Sep 18, 2017
Merged

gps: source cache: adding multiCache #1138

merged 1 commit into from
Sep 18, 2017

Conversation

jmank88
Copy link
Collaborator

@jmank88 jmank88 commented Sep 7, 2017

What does this do / why do we need it?

This PR adds type multiCache struct, which is a singleSourceCache that manages two cache levels, ephemeral in-memory and persistent on-disk. It is currently only tested, and will be integrated later.

This is a simple implementation. There is room for optimization which can be explored later when integrating (e.g. I've implemented async background disk writes on my WIP branch, which pairs nicely with batch Bolt updates, especially now that we're using a single file).

Which issue(s) does this PR fix?

Towards #431

@sdboyer sdboyer merged commit 166626d into golang:master Sep 18, 2017
@jmank88 jmank88 deleted the multi_cache branch September 18, 2017 11:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants