Git Product home page Git Product logo

Comments (8)

mrniko avatar mrniko commented on September 26, 2024 1

This method requires Redis 7.0+ as mentioned in javadocs.

from redisson.

arenick001 avatar arenick001 commented on September 26, 2024

failed with Redis 7.0+as also
redis_version:7.2.4
redisson version: 3.29.0

org.redisson.client.RedisException: ERR Unknown Redis command called from script script: 53dad715c48e157e76e9fad49b78d39e8fc84432, on @user_script:1.. channel: [id: 0x57e6dcaa, L:/127.0.0.1:57861 - R:localhost/127.0.0.1:6379] command: (EVAL), promise: java.util.concurrent.CompletableFuture@3caa2660[Not completed, 1 dependents], params: [redis.call('json.set', KEYS[1], '$', ARGV[1]); redis.call('pexpire', KEYS[1], ARGV[2]); , 1, node:T001, PooledUnsafeDirectByteBuf(ridx: 0, widx: 99, cap: 256), 120000]
	at org.redisson.client.handler.CommandDecoder.decode(CommandDecoder.java:415)
	at org.redisson.client.handler.CommandDecoder.decodeCommand(CommandDecoder.java:216)
	at org.redisson.client.handler.CommandDecoder.decode(CommandDecoder.java:144)
	at org.redisson.client.handler.CommandDecoder.decode(CommandDecoder.java:120)

by the way,when I use redisson-micronaut-40(3.30.0),it can't find a Config.class bean. @mrniko

from redisson.

mrniko avatar mrniko commented on September 26, 2024

@arenick001

redis.call('json.set', KEYS[1], '$', ARGV[1]);

make sure that json.set is supported by Redis vendor

from redisson.

mrniko avatar mrniko commented on September 26, 2024

@arenick001

when I use redisson-micronaut-40(3.30.0),it can't find a Config.class

Is there any code sample to reproduce it?

from redisson.

arenick001 avatar arenick001 commented on September 26, 2024

@arenick001

when I use redisson-micronaut-40(3.30.0),it can't find a Config.class

Is there any code sample to reproduce it?

I use docker image redis/redis-stack-server:latest. the code is following:

redissonClient.getJsonBucket(key, new JacksonCodec<>(SimpleObject.class))
  .set(obj, Duration.of(2,TimeUnit.MINUTES.toChronoUnit()))

actually I am trying to use RediSearch and copy the code from the sample @mrniko

from redisson.

arenick001 avatar arenick001 commented on September 26, 2024

Is there any code sample to reproduce it?

<dependency>
    <groupId>org.redisson</groupId>
    <artifactId>redisson-micronaut-40</artifactId>
    <version>3.29.0</version>
</dependency>

just replace 3.29.0 with 3.30.0.
the config in code ↓

@Factory
public class RedissonConfig {

    @Singleton
    @Replaces(RedissonClient.class)
    public RedissonClient redissonClient(Config config) {
        Codec codec = new JsonJacksonCodec();
        config.setCodec(codec);
        return Redisson.create(config);
    }
}
Message: No bean of type [org.redisson.config.Config] exists. 
Path Taken: new FpgaManager(RedisManager redisManager) --> new FpgaManager([RedisManager redisManager]) --> new RedisManager([RedissonClient redissonClient]) --> RedissonConfig.redissonClient([Config config])

@mrniko

from redisson.

mrniko avatar mrniko commented on September 26, 2024

This is the result of incorrect configuration. Try to add @Requires(beans = Config.class)

from redisson.

arenick001 avatar arenick001 commented on September 26, 2024

This is the result of incorrect configuration. Try to add @Requires(beans = Config.class)

thx!

make sure that json.set is supported by Redis vendor

finally I found I need a RedisJSON module in Redis. haha~

from redisson.

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.