aquiles是.net下基于Thrift协议访问Cassandra的第三方类库,官方地址是:
 
1.下载类库文件:
 
2.添加引用
Aquiles.Core.dll
Aquiles.Cassandra10.dll
Thrift.dll
 
3.添加配置文件
<?xml version="1.0" encoding="utf-8" ?>
<configuration>

  <configSections>
    <section name="aquilesConfiguration" type="Aquiles.Core.Configuration.AquilesConfigurationSection,Aquiles.Core"/>
  </configSections>

  <aquilesConfiguration>
    <clusters>
      <add friendlyName="Test_Cluster">
        <connection poolType="SIZECONTROLLEDPOOL" factoryType="FRAMED">
        </connection>
        <endpointManager type="ROUNDROBIN" defaultTimeout="6000">
          <cassandraEndpoints>
            <add address="*.*.*.*" port="9160"/>
            <add address="*.*.*.*" port="9160"/>
            <add address="*.*.*.*" port="9160"/>
          </cassandraEndpoints>
        </endpointManager>
      </add>
    </clusters>
  </aquilesConfiguration>

  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
  </startup>

</configuration>

 

相关文章:

  • 2021-09-16
  • 2022-03-09
  • 2022-12-23
  • 2021-06-04
  • 2022-12-23
  • 2021-12-01
  • 2021-10-31
  • 2021-07-06
猜你喜欢
  • 2022-12-23
  • 2021-10-18
  • 2021-09-19
  • 2022-12-23
  • 2021-06-02
  • 2022-12-23
相关资源
相似解决方案