compas-dev / compas-dev/compas_cloud

feature_request: return wrapped cached object on which methods of cached object can be directly called, and executed in server

Open
#13 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
6
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Create a easy-to-work with wrapped cached object on which methods of the cached object (which may call all the nice scientific libraries we cannot use in IronPython) can be directly called--triggering their execution in the server.

An example of how it would be used from the point of the Proxy-using developer:
![image](https://user-images.githubusercontent.com/9421670/98230527-8f348180-1f5b-11eb-9f84-9c1ca9f720df.png)

This involves creating a wrapped cached object that gets returned when Proxy.cache(object) is used:
![image](https://user-images.githubusercontent.com/9421670/98229665-79728c80-1f5a-11eb-9851-a3c630702805.png)
This class, as can be seen, gathers and wrap all the methods that are in the cached object's class, so that they may directly be called from the Client side...

Where proxy.run_method_of_cached was discussed in an earlier Issue...

Finally, the wrapped object also provides a handy restore function that allows the cached object to be recreated in the client side.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.