Connect with us

Get more updates and further details about your project right in your mailbox.

Thank you!
Oops! Something went wrong while submitting the form.
August 17, 2023

Elements on a web page can be located using XML expressions with Selenium’s XPath locator.

The best time to establish protocols with your clients is when you onboard them.


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

S3 is excellent for storing files, but it also has many other uses. I adore utilizing S3 as a straightforward caching system for any stateless services that require saving some transient data to maintain state.

In the past, you would have used in-memory caching solutions like Redis for this, and Redis still has a role because it will almost always be quicker than fetching data from S3. However, S3 is a cheap, low-effort, and straightforward to install option if millisecond speed is not a problem.

Use them as follows (be sure to set the environment variable CACHE BUCKET):

The values in the code snippet above are being saved as JSON objects. Of course, you are free to store any kind of material you want (binary, plain text, etc.) as long as it serves your needs.

S3 Lifecycle configurations, work well when used in conjunction with S3 as a cache. This will enable you to have cache resources deleted automatically after a predetermined amount of time.

To limit the items in the bucket to which this auto-deletion rule is applied to, you may attach tags and filter by them, or you can add a Prefix or TagFilters condition.

You may wish to increase the size of our little cache if you frequently use this form of data caching.js helper that includes a few more methods. Due to S3’s flexibility, it should be rather simple to implement the following functions:

  • Removing cache keys
  • Delete prefix-containing cache keys
  • Tag cache keys to enable deletion or retrieval of all keys with a certain tag.

August 18, 2023
min read
Subscribe to our newsletter
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Share this article:

More articles