slumberdb/slumberdb-core/src/main/java/org/boon/slumberdb/base/BaseSimpleSerializationKeyValueStore.java
protected byte[] toKeyBytes(K key) {

        byte[] keyBytes = keyCache.get(key);
        if (keyBytes == null) {
            keyBytes = this.keyToByteArrayConverter.apply(key);
            keyCache.put(key, keyBytes);
        }
        return keyBytes;

    }
protected byte[] toKeyBytes(K key) {

        byte[] keyBytes = keyCache.get(key);
        if (keyBytes == null) {
            keyBytes = this.keyToByteArrayConverter.apply(key);
            keyCache.put(key, keyBytes);
        }
        return keyBytes;

    }
Convert a String key to bytes.

@param key key to convert
@return value