Subject: | CHI Digests can exceed max_key_length |
CHI presently only interprets max_key_length to be a threshold at which digest is called.
However, its plausible that a digester may emit a key digest in excess of max_key_length.
Attached is some example code simulating this effect.
<< Keys exceeding the maximum length for the underlying driver are digested - see "max_key_length" and "key_digester" >>
Also, I notice that "max_key_length" is merely an attribute, and its implementation is such that if the user specifies any value, it will be taken in preference to the driver's default. However, this allows users to accidentally exceed drivers absolute maximums, and the drivers may not be even capable of this
^ And this explains why I've presently handled this with an around =>. I could have probably done 'has +' on the attribute and changed its isa or something.
Subject: | overkey.pl |