Giter VIP home page Giter VIP logo

Comments (4)

nunomaduro avatar nunomaduro commented on May 19, 2024 1

This will be fixed on the next release, next week.

from octane.

Namoshek avatar Namoshek commented on May 19, 2024

The Octane cache is based on a Swoole Table, in case you are using the Swoole server. The cache is limited to 1000 rows with 10.000 bytes each by default:

octane/config/octane.php

Lines 125 to 139 in 9faedfb

/*
|--------------------------------------------------------------------------
| Octane Cache Table
|--------------------------------------------------------------------------
|
| While using Swoole, you may leverage the Octane cache, which is powered
| by a Swoole table. You may set the maximum number of rows as well as
| the number of bytes per row using the configuration options below.
|
*/
'cache' => [
'rows' => 1000,
'bytes' => 10000,
],

For larger items, you might want to:

  • consider using a different type of cache
  • increase the default size of the Octane cache per item
  • define and use a separate Swoole Table for the larger items

I suspect your initial exception occured because the data was truncated during insert.

from octane.

wimil avatar wimil commented on May 19, 2024

I have the same problem, how can I fix it ?, I tried to increase the bytes and row but it doesn't work.

from octane.

haught avatar haught commented on May 19, 2024

This is an issue that needs to be worked around. You can set an entry to the swoole table that is larger the it can contain and we don't get a false back from $this->table->set() in the put method. It thinks it added it correctly. This would probably be something that swoole needs to address.

The problem on the octane side is that we are failing to handle the unserialize error on the get method. The data is corrupted, it should be handled in some way. Report the error (maybe a more friendly message...) and return null as if the record was not found would seem like a logical workaround for the get method.

            try {
                return unserialize($record['value']);
            } catch (Throwable $e) {
                report($e);
                return null;
            }

from octane.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.