We want to use redis extension on our server, but we have more applications here. So we would like to set database by string not by number, becose it's hard to remember which numbers are already in use.

I tried somethink like this:

redis:
journal: {database: crc32(%appName%0)}
storage: {database: crc32(%appName%0)}
session: {native:off, database: crc32(%appName%1)}

but it ends with “Redis::select() expects parameter 1 to be long, object given” (object is Nette\DI\Statement with crc32).

Have you got any idea how to achiev this? Is there some way how to expand entity?

I think it's not a problem of this library, but the redis itself does not support the name of database as string and just as a number…


You must first log in to participate in this discussion