Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bytea cache #828

Closed
Gemorroj opened this issue Dec 22, 2017 · 4 comments
Closed

Bytea cache #828

Gemorroj opened this issue Dec 22, 2017 · 4 comments
Assignees

Comments

@Gemorroj
Copy link

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.

@Ocramius
Copy link
Member

@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).

@Ocramius
Copy link
Member

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

@Gemorroj
Copy link
Author

@Ocramius
Copy link
Member

@Gemorroj thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants