Platforms
About
Resources

Our mission is to accelerate digital transformation, optimize operational efficiency, and drive business growth through AI-driven innovation

Copyright © 2025 CodeStax. All right reserved.

Our mission is to accelerate digital transformation, optimize operational efficiency, and drive business growth through AI-driven innovation

Copyright © 2025 CodeStax. All right reserved.

Our mission is to accelerate digital transformation, optimize operational efficiency, and drive business growth through AI-driven innovation

Copyright © 2025 CodeStax. All right reserved.

Engineering Excellence

Engineering Excellence

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

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.

Read Time

Read Time

Read Time

5 min

2 min

2 min

Published On

Published On

Published On

18 Aug 2023

18 Aug 2023

18 Aug 2023

Share Via

Share Via

LinkedIn

Read Time

2 min

Published On

18 Aug 2023

Share Via

LinkedIn

Our mission is to accelerate digital transformation, optimize operational efficiency, and drive business growth through AI-driven innovation

Copyright © 2025 CodeStax. All right reserved.