Skip to content
This repository was archived by the owner on Feb 13, 2022. It is now read-only.

Conversation

@lusentis
Copy link

I have a problem getting cached data if it contains the string "END". I have fixed the problem by replacing .indexOf('END') with .lastIndexOf('END') as suggested in #22

@elbart
Copy link
Owner

elbart commented Jul 27, 2012

i understand your point but with your fix most of the tests are failing... currently investigating on this problem... i hope to pull this asap since this is surely very useful...

@guileen
Copy link

guileen commented Nov 25, 2012

same problem.

@1999
Copy link

1999 commented Jan 17, 2013

@elbart any changes on this? i left a comment in #26 regarding this. I hope it helps

@sricc
Copy link

sricc commented Jul 19, 2013

Caught this problem as well. Any chance this will be fixed soon?

@masonzhang
Copy link

@elbart Please merge this pull request. This fixed my issue.

@1999
Copy link

1999 commented Aug 4, 2013

@masonzhang this pull request does not solve the problem completely. Look this comment #26 (comment) and you'll see that. As far as I understand @elbart discontinued the developing of node-memcache project and it's probably better to fork it now.

@masonzhang
Copy link

@1999 right, the fix cannot resolve the issue. After long run on server, I saw other error logs. Thanks a lot for the reminder. To further investigate the issue. I output the content of the cache to logs when error happens. Finally I found the reason is, sometimes the string read from cache may contains multiple cached object. The simple fix does not resolve the issue. I didn't read the document of memcached, but I think it should be documented in server protocol.

Firer added a commit to Firer/node-memcache that referenced this pull request Sep 13, 2018
@jisqyv
Copy link

jisqyv commented Dec 4, 2018

@lusentis See #46 for a different (better) approach.

@lusentis lusentis closed this May 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants