We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
why doesnt the below work? also, am i doing it right? i've tried multiple different ways. there's no error shown... pls help thx.
i realised it seems to stuck at displaying the value... if not initialized. how do i resolve? I think (int) for nil will jam without error displayed
package httpcachetesting import ( "github.com/karlseguin/ccache" "fmt" ) var ( HttpContentCache = ccache.Layered(ccache.Configure()) ) func HTTPCacheGet(urlhost string, urlreq string) (int, []byte, []byte, int, bool) { fmt.Printf("*** Start\n") httpcaches := HttpContentCache.Get(urlhost, "s"+urlreq) //same as stored in redis fmt.Printf("*** THIS MSG IS NOT SHOWING?!?!?! V : %v\n", httpcaches.Value().(int)) }
The text was updated successfully, but these errors were encountered:
i resolved it. needed to do type assertion. thx. great software.
Sorry, something went wrong.
No branches or pull requests
why doesnt the below work? also, am i doing it right? i've tried multiple different ways. there's no error shown... pls help thx.
i realised it seems to stuck at displaying the value... if not initialized. how do i resolve? I think (int) for nil will jam without error displayed
The text was updated successfully, but these errors were encountered: