Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以将变量和值保存在 PHP 内存中?如果是,该怎么做?
我希望每 0.1 秒更新一些值(可能这些值不应该保存在数据库中,因为 mysqli 查询有时会持续超过 0.1 秒。)
我也不想使用 $_SESSION 因为我希望所有用户都可以访问这些变量。
提前致谢。
试试怎么样
使用 SQLite?
MongoDB,Redis?
其他一些纯内存数据存储...