Seiden Group
Modern Development & Open Source for IBM i
  • Link to LinkedIn
  • Link to Mail
  • Home
  • Seiden PHP+
    • Seiden PHP+
    • Install & Learn
    • SmartSupport
    • PHP Migrations & Upgrades
    • Success Stories
    • Free PHP Assessment
    • Documentation
    • What’s New (Changelog)
  • IBM i Services
    • Development
    • Training & Mentoring
    • Open Source Setup & Upgrades
    • SSL/TLS Install & Learn
    • Performance
  • Support
    • Open Source & PHP
    • VS Code for i
    • Developer Support
    • Support Success Stories
  • VS Code for i
    • Support
    • Training
    • Code for i Resource Guide
    • Getting Started Videos
    • Code for IBM i Fridays
  • Free Stuff
    • IBM i Strategy & Tips
    • PHP Upgrade Assessment
    • CNX Valence Assessment
    • VS Code for IBM i Resources
    • Code for IBM i Fridays
    • QCachegrind Download
    • PHP Toolkit for IBM i Resources
    • Qshell on i Library
  • Blog
  • About
    • About Our Team
    • About Alan Seiden
    • Speakers & Sessions
    • In the News
  • Contact
  • 201.447.2437
  • Search
  • Menu Menu

Seiden Group Blog

APCu Extension Added to Seiden PHP+

February 23, 2024/0 Comments/in PHP /by Alan Seiden

Upgrade your PHP to PHP+PHP sites and APIs on IBM i have a new way to run even faster. As noted in our Seiden PHP+ Changelog, we have added the APCu extension to our PHP distribution.

The APC User Cache (APCu) extension is an “in-memory key-value store for PHP” that evolved from the old APC extension (minus the opcode caching). We added APCu at the request of a Linux PHP user who migrated their PHP application to the IBM i to simplify their architecture.

Here is a sample script from the apcu_store() manual page. It stores a value in a named key, then retrieves it.

1
2
3
4
5
6
7
<?php
$bar = 'BAR';
// Store the value in memory with the name 'foo'
apcu_store('foo', $bar);
// Retrieve value
var_dump(apcu_fetch('foo')); // string(3) "BAR"
?>

When this script is run from a web or API application, the keyed value will remain in memory, available to all PHP web jobs, until either the value is cleared, the web server is restarted, or the optional time-to-live (ttl) seconds have passed.

Optional features include a way to load multiple key/value pairs at once, even a whole table, so long as it fits in memory.

For the full list of functions, see the APCu manual page: https://www.php.net/manual/en/ref.apcu.php

To install this extension in an existing Seiden PHP+ installation, use the ACS Open Source Package Management window, or from an SSH terminal, run yum install "php-apcu". Then restart your web server.

Share this entry
  • Share on Facebook
  • Share on X
  • Share on Pinterest
  • Share on LinkedIn
  • Share on Tumblr
  • Share on Reddit
  • Share by Mail
https://www.seidengroup.com/wp-content/uploads/2017/03/SeidenLogo-180.png 0 0 Alan Seiden https://www.seidengroup.com/wp-content/uploads/2017/03/SeidenLogo-180.png Alan Seiden2024-02-23 11:13:242025-01-14 12:31:10APCu Extension Added to Seiden PHP+
Alan Seiden

About Alan Seiden

Alan works to preserve your investment in IBM enterprise systems by designing and implementing modernization strategies that leverage your existing business logic.

With a passion ...Read More

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

SUBSCRIBE
Open Thinking
Monthly IBM i Strategy & Tips
  • This field is for validation purposes and should be left unchanged.

IBM i Development

  • RPG, COBOL, SQL, Node,
    PHP, Python, Valance, etc.
  • Modernization. Integration.
  • Web and API Solutions
  • Legacy Maintenance
    ...
LET'S GET IT DONE!

Recent Posts

  • Do You Need IBM i Observability?
  • PHP 8.6 is Coming Soon to IBM i
  • Safer npm installation is on the way for Node.js (and all JavaScript)
  • Access Modern Security for IBM i and Connected Web Environments
  • IBM i: A Natural Platform for Agentic AI
  • PHP on IBM i in 2026: The Modernization Engine
  • Your “AS/400” Is a Modern IBM i Platform
  • MCP + AI for IBM i Teams (with a MongoDB example)
  • GnuPG PHP Extension for IBM i: Now Included with Seiden Support
  • Getting Started with Code for IBM i: A Lunch & Learn Video

SEIDEN GROUP: Modern Development & Open Source for IBM i

Home   |   Seiden PHP+   |   IBM i Services  |   Support   |   VS Code for i   |   Free Stuff   |   Blog  |   Privacy Policy  |   Contact         201.447.2437

© 2026 Seiden Group, LLC
  • Link to LinkedIn
  • Link to Mail
Link to: Finding Security Fixes for Apache on IBM i Link to: Finding Security Fixes for Apache on IBM i Finding Security Fixes for Apache on IBM i Link to: What IBM i Users Should Check when Learning of an Open Source Security Vulnerability Link to: What IBM i Users Should Check when Learning of an Open Source Security Vulnerability What IBM i Users Should Check when Learning of an Open Source Security Vuln...
Scroll to top Scroll to top Scroll to top