code: func GetKeyType(typename string) (keytype KeyType) {
  	switch {
  	case typename == "none":
  		keytype = RT_NONE
  	case typename == "string":
  		keytype = RT_STRING
  	case typename == "list":
  		keytype = RT_LIST
  	case typename == "set":
  		keytype = RT_SET
  	case typename == "zset":
  		keytype = RT_ZSET
  	default:
  		panic("BUG - unknown type: " + string(keytype))
  	}
  	return
  }
docs: // Returns KeyType by name
  //