disable trim_length & bug fixes
add validation for cache key type
fix tests
Merge pull request #4 from studio-ousia/fix_length_validation

Fix length validation