configurable length of generated id

As I mentioned earlier in #259 there is a problem with generated id legth and Cache API implementation provider other than Ehcache (in my case - it's memcached).

I think adding the config parameter with fallback to a value currently used in DefaultIdGenerator will be more practical and elegant - it would be useful for every cache implementation which has any key-length limitations.