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

Implement pux_fetch_mux and pux_store_mux to support persistent mux. #24

Closed
c9s opened this issue Jan 17, 2014 · 1 comment
Closed

Implement pux_fetch_mux and pux_store_mux to support persistent mux. #24

c9s opened this issue Jan 17, 2014 · 1 comment

Comments

@c9s
Copy link
Owner

c9s commented Jan 17, 2014

to reach the goal of #18, we should first implement the basic functions to store/fetch mux.

currently we've done the pux_store_mux function, now we need to implement pux_fetch_mux.

the API is something like APC, but we store the zval without serialization/unserialization:

if (  ($mux = pux_fetch_mux('app_pmux')) == null ) {
   $mux = new Mux;
   pux_store_mux('app_pmux', $mux);
}
@c9s
Copy link
Owner Author

c9s commented Jan 17, 2014

Done!

@c9s c9s closed this as completed Jan 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant