Hi,

If you haven't gotten this working and in case you're not aware, you can 
now use the memcache API with Python 3 (i.e. there is no reason to use 
Redis). See this Twitter thread 
<https://twitter.com/GUI_4_GAE/status/1444956721252737028> for more details 

*.....* NoCommandLine *......*
 https://nocommandline.com

*A GUI for Google App Engine*

On Tuesday, August 24, 2021 at 1:36:42 AM UTC-7 Daniel Kramer wrote:

> I've been porting my python2.7 app to python3. I've got it mostly working 
> with the exception of memcache.  
>
> In the 2.7 legacy appengine I was able to store and retrieve ndb models, 
> or lists of them etc. With Redis I'm not clear how to do this as it doesn't 
> accept models directly.. looks like I need to serialize them first.  Just 
> having issues with date objects in my models that won't serialize.  I'm 
> sure there are work arounds and figure many of you have been here before 
> but I'm not finding an elegant solution
>
> I also noticed that Memcached is an alternative (maybe beta?) option to 
> Redis on google cloud services.  I spun up an instance and I am able to 
> save and retrieve models.. when the model comes back it's actually a str 
> object.. sort of looks like what you'd get if you print() your model to see 
> all the properties.  Is it possible to populate a model with the data from 
> this string simply?
>
> What's the recommended solution?  I imagine pickle may also be an option 
> but I've been reading it's not very fast
>
> Thanks
> D
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/0296b337-d75b-461a-9fe1-7f302c1fdb39n%40googlegroups.com.

Reply via email to