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

Allow StoreKey to be rehydrated #114

Closed
SeanFarrow opened this issue Feb 14, 2023 · 13 comments
Closed

Allow StoreKey to be rehydrated #114

SeanFarrow opened this issue Feb 14, 2023 · 13 comments

Comments

@SeanFarrow
Copy link
Contributor

Currently, it is not possible to rehydrate a StoreKey in it's entirity as we are only creating a string witht the values in.

We need this for issue #112. As well as this, it may mean we can remove the use of a second dictionary in the in-memory implementation of IValueStore in the future.

@KevinDockx
Copy link
Owner

What would be needed to make this possible? My main concern is breaking outer facing stuff, so if it doesn't I'd be inclined to go for it :)

@SeanFarrow
Copy link
Contributor Author

SeanFarrow commented Feb 15, 2023 via email

@KevinDockx
Copy link
Owner

Serializing both is ok as far as I'm concerned, gives us a unified approach. Do you need me to do that, or will you take this up?

@SeanFarrow
Copy link
Contributor Author

SeanFarrow commented Feb 17, 2023 via email

@KevinDockx
Copy link
Owner

There's no rush :)

@SeanFarrow
Copy link
Contributor Author

SeanFarrow commented Feb 17, 2023 via email

@KevinDockx
Copy link
Owner

Hi Sean, do you happen to have an idea of when you'll be able to work on this PR? Thanks! :)

@SeanFarrow
Copy link
Contributor Author

SeanFarrow commented Apr 24, 2023 via email

@KevinDockx
Copy link
Owner

That sounds good, thanks!

@SeanFarrow
Copy link
Contributor Author

@KevinDockx Do we want to spin up a Docker container for Redis in the tests to check that we can retrieve the keys a user would expect given the pattern we are matching and whether we are ignoring case?

I ask as to retrieve the keys, we have to look at each server, which unfortunately doesn't have an interface, so this isn't really mockable.

@KevinDockx
Copy link
Owner

KevinDockx commented May 15, 2023

If you wish, sure, but I wouldn't go that far - seems like a bit of overkill just to get a few additional automated tests.

@SeanFarrow
Copy link
Contributor Author

I've now raised a PR for this.

Once this is merged, I can finish off #112.

@SeanFarrow
Copy link
Contributor Author

Closed by #115

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants