doctrine/common

Bytea cache

Gemorroj opened this issue · 4 comments

I use PostgreSql. And use type bytea.
If i cache bytea resource (see note http://php.net/manual/en/ref.pdo-pgsql.connection.php).
I have cached string 0.
I think possible cache resource as string with stream_get_contents.
You may need to add in the documentation that the resources are not cached. Because such information is in the documentation I have not found.

Correct me if I'm wrong.

@Gemorroj can you open an issue on https://github.com/doctrine/cache please?

Also, I think the correct behavior is to throw an exception when something un-cacheable is passed in (serialization fails).

Closing as Incomplete here - please open it on a separate repository, and specify which cache failed.

@Gemorroj thanks!