Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Redis to an interface #150

Closed
Ianleeclark opened this issue Oct 29, 2016 · 0 comments
Closed

Change Redis to an interface #150

Ianleeclark opened this issue Oct 29, 2016 · 0 comments

Comments

@Ianleeclark
Copy link
Owner

This will help in a following issue where we'll allow Olivia deployments to be the backend peer cache instead of Redis.

Ianleeclark added a commit that referenced this issue Nov 22, 2016
CHANGE:
  - Moved all redis stuff into `./server/peerStore`
  - peerStore/redisStore.go Now creates connectiosn on-the-fly. This is a
    degradation for performance and shouldn't be necessary. However, I'm lazy
    and Redis is going to be trashed for Olivia. In the future, a better
    solution would be to send all redis operations to a central store and have
    that store process via one connection.
Ianleeclark added a commit that referenced this issue Nov 22, 2016
CHANGE:
  - server/peerStore/redis_test.go Importing `server` package, as we need the
    definitions from it.
Ianleeclark added a commit that referenced this issue Nov 25, 2016
Major refactor of server/annoucne -> announce/announce.go
Ianleeclark added a commit that referenced this issue Nov 25, 2016
CHANGE:
  - server/peerStore/peerstore.go Added a new method all peerStores should
    implement.
  - server/peerStore/redisStore.go Added new wrapper methods to implement the
    `PeerStore` interface.
  - server/server.go Still attempting to decouple heavily spaghettied code.
Ianleeclark added a commit that referenced this issue Nov 25, 2016
CHANGE:
  - kvStoreInterfaces/redis.go Now houses common redis calls used
    **throughout** the application. The `server/peerStore/redisStore.go` file
    just implements a wrapper around these.
@Ianleeclark Ianleeclark mentioned this issue Nov 25, 2016
12 tasks
@Ianleeclark Ianleeclark mentioned this issue Nov 27, 2016
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant