According to the Cloudflare Workers documentation, the maximum cache size for the free plan is 512 MB per object. However, it's not clear if this limit applies to the total cache size or individual cache objects.
Regarding your specific use case, it's likely that you'll be storing multiple cache objects, each containing the data for a single student. In this case, the 512 MB limit would apply to each individual cache object, not the total cache size.
However, it's worth noting that the documentation also mentions that the cache is not designed to store large amounts of data, and it's recommended to use a database or other storage solution for large datasets.
As for how long the cache data is saved, the documentation doesn't provide a specific time limit. However, it does mention that the cache is subject to eviction, which means that cache objects may be removed from the cache at any time due to various factors such as cache size limits, cache expiration, or system maintenance.
Additionally, you may want to consider using a database or other storage solution to store your student data, as it may be more suitable for large datasets and provide more control over data retention and expiration.
This is an AI generated response, it may not be 100% accurate. Please validate the output. You can ask followups by replying to this message or mentioning me.