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

Add ability to set SK and namespace #3

Open
chekalsky opened this issue Dec 28, 2020 · 1 comment
Open

Add ability to set SK and namespace #3

chekalsky opened this issue Dec 28, 2020 · 1 comment
Assignees

Comments

@chekalsky
Copy link

chekalsky commented Dec 28, 2020

I think it would be helpful to have an ability to set SortKey for the table for projects made with single-table design principles.

In this case having prefix (e.g. RIKIDOUCACHE# or a custom one) would be a super helpful too (RikudouSage/DynamoDbCachePsr6Bundle#6).

Single-table means structure like this:

PK SK value ttl
RIKIDOUCACHE#key1 RIKIDOUCACHE#key1 value1 0
RIKIDOUCACHE#key2 RIKIDOUCACHE#key2 value2 0
APP#user1 APP#user1 username1

If this case should be handled by Decorator from RikudouSage/DynamoDbCachePsr6Bundle#7 then it would be helpful to have documented somewhere.

@chekalsky chekalsky changed the title Add ability to set SK Add ability to set SK and namespace Dec 28, 2020
@RikudouSage RikudouSage self-assigned this Dec 31, 2020
RikudouSage added a commit that referenced this issue Dec 31, 2020
@RikudouSage
Copy link
Owner

The prefix is added, I will have to think a little more about how to implement the sort key.

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