https://bugzilla.wikimedia.org/show_bug.cgi?id=43269

--- Comment #4 from Ori Livneh <[email protected]> ---
(In reply to comment #1)
> What's the maximum length?

The maximum length is 250 *bytes*:
https://github.com/memcached/memcached/blob/master/doc/protocol.txt

(In reply to comment #2)
> What's the practical influence of this? Asking as
> http://ta.wikisource.org/wiki/திருவிவிலியம்/இணைத்_திருமுறை_நூல்கள்/
> பாரூக்கு_(எரேமியாவின்_மடல்)/அதிகாரங்கள்_5_முதல்_6_வரை
> still shows and offers http://ta.wikisource.org/s/30q as a ShortURL which
> works...

You could have overlapping keys if the difference between them exists beyond
the 250 character mark.

There's a simple solution to this, and it's to hash the title before using it
in a key. sha1($title) will give you a 40-byte string.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to