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

Duplicate Key Entry in Cache Collection #19

Open
rafaelgom3s opened this issue Sep 28, 2017 · 0 comments
Open

Duplicate Key Entry in Cache Collection #19

rafaelgom3s opened this issue Sep 28, 2017 · 0 comments

Comments

@rafaelgom3s
Copy link

I'm experiencing duplicated cache entries when using the MongoDB engine with cacheman.

Below is the partial output of the collection used by cacheman to persist the cache. Has you may notice the key cacheman:flows:User:77FhwgJtDQyPTSs9u is present twice.

/* 1 */
{
    "_id" : ObjectId("59cd076bd24488ac2138fc4a"),
    "key" : "cacheman:flows:User:77FhwgJtDQyPTSs9u",
    "value" : "{\"checkin\":{\"context\":{\"dates\":{\"date_start\":1506637800,\"date_end\":1506643199},\"state\":\"request\",\"type\":\"invalid_project\",\"flowData\":{\"records\":[{\"hours\":8}]}},\"active\":true,\"finished\":false}}",
    "expireAt" : ISODate("2017-10-28T14:30:03.441Z")
}

/* 2 */
{
    "_id" : ObjectId("59cd076bd24488ac2138fc49"),
    "key" : "cacheman:flows:User:77FhwgJtDQyPTSs9u",
    "value" : "{\"checkin\":{\"context\":{\"dates\":{\"date_start\":1506637800,\"date_end\":1506643199},\"state\":\"request\",\"type\":\"invalid_project\",\"flowData\":{\"records\":[{\"hours\":8}]}},\"active\":true,\"finished\":false}}",
    "expireAt" : ISODate("2017-10-28T14:30:03.436Z")
}

Is this a bug or a feature? 😄

@rafaelgom3s rafaelgom3s changed the title Duplicate key entry in cache collection Duplicate Key Entry in Cache Collection Sep 28, 2017
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

1 participant