Closed acherkashyn closed 10 years ago
I'm wondering if enforcing a length is useful at all. @swankjesse?
If we were ever to switch to a binary encoding, we'd want a length limit like 255 so we can store the length in a single byte. And because the key name is used as a filename we shouldn't let it go arbitrarily long.
But 120 should be fine.
really cool observation @swankjesse (in that case just raise it now to 255 then)
The file name limit is 127 on Android. 120 is good. On Jul 22, 2014 6:49 PM, "Angel Leon" notifications@github.com wrote:
really cool observation @swankjesse https://github.com/swankjesse (in that case just raise it now to 255 then)
— Reply to this email directly or view it on GitHub https://github.com/JakeWharton/DiskLruCache/pull/65#issuecomment-49824194 .
So then... merge? :)
Squashed and merged.
Increase the key length limit and update unit tests accordingly.